]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - bin/run_servers.sh
Move scripts to bin
[github/Chocobozzz/PeerTube.git] / bin / run_servers.sh
1 #!/bin/bash
2
3 if [ ! -f server.js ]; then
4 echo "The script has to be executed at the root of the project."
5 exit -1
6 fi
7
8 NODE_ENV=test NODE_APP_INSTANCE=1 node server.js &
9 sleep 1
10 NODE_ENV=test NODE_APP_INSTANCE=2 node server.js &
11 sleep 1
12 NODE_ENV=test NODE_APP_INSTANCE=3 node server.js &