PeerTube/scripts/run_servers.sh

13 lines
291 B
Bash
Raw Normal View History

2015-06-09 10:41:40 -05:00
#!/bin/bash
if [ ! -f server.js ]; then
echo "The script has to be executed at the root of the project."
exit -1
fi
2015-06-09 10:41:40 -05:00
NODE_ENV=test NODE_APP_INSTANCE=1 node server.js &
sleep 1
NODE_ENV=test NODE_APP_INSTANCE=2 node server.js &
sleep 1
NODE_ENV=test NODE_APP_INSTANCE=3 node server.js &