PeerTube/scripts/play.sh

16 lines
227 B
Bash
Raw Normal View History

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