PeerTube/scripts/play.sh

14 lines
224 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2017-06-25 11:36:57 +02:00
if [ ! -f "dist/server.js" ]; then
echo "Missing server file (server.js)."
exit -1
fi
2016-12-25 12:05:47 +01:00
max=${1:-3}
for i in $(seq 1 $max); do
2017-06-10 22:57:31 +02:00
NODE_ENV=test NODE_APP_INSTANCE=$i node dist/server.js &
sleep 1
done