aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/run_servers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run_servers.sh')
-rwxr-xr-xscripts/run_servers.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/run_servers.sh b/scripts/run_servers.sh
index f99ca6bd9..83768178c 100755
--- a/scripts/run_servers.sh
+++ b/scripts/run_servers.sh
@@ -1,5 +1,10 @@
1#!/bin/bash 1#!/bin/bash
2 2
3if [ ! -f server.js ]; then
4 echo "The script has to be executed at the root of the project."
5 exit -1
6fi
7
3NODE_ENV=test NODE_APP_INSTANCE=1 node server.js & 8NODE_ENV=test NODE_APP_INSTANCE=1 node server.js &
4sleep 1 9sleep 1
5NODE_ENV=test NODE_APP_INSTANCE=2 node server.js & 10NODE_ENV=test NODE_APP_INSTANCE=2 node server.js &