aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/run_servers.sh
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-07 18:06:54 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-07 18:06:54 +0100
commite7870ff368251c6368137aab4f670517b37a2a20 (patch)
tree74c575eb114bb12788465629f194f03d218397d7 /bin/run_servers.sh
parentccfd23dfe5c0ede1958804e8a36b4b336307a67e (diff)
downloadPeerTube-e7870ff368251c6368137aab4f670517b37a2a20.tar.gz
PeerTube-e7870ff368251c6368137aab4f670517b37a2a20.tar.zst
PeerTube-e7870ff368251c6368137aab4f670517b37a2a20.zip
Move scripts to bin
Diffstat (limited to 'bin/run_servers.sh')
-rwxr-xr-xbin/run_servers.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/run_servers.sh b/bin/run_servers.sh
new file mode 100755
index 000000000..83768178c
--- /dev/null
+++ b/bin/run_servers.sh
@@ -0,0 +1,12 @@
1#!/bin/bash
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
8NODE_ENV=test NODE_APP_INSTANCE=1 node server.js &
9sleep 1
10NODE_ENV=test NODE_APP_INSTANCE=2 node server.js &
11sleep 1
12NODE_ENV=test NODE_APP_INSTANCE=3 node server.js &