mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-22 16:56:39 -06:00
14 lines
224 B
Bash
Executable File
14 lines
224 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
if [ ! -f "dist/server.js" ]; then
|
|
echo "Missing server file (server.js)."
|
|
exit -1
|
|
fi
|
|
|
|
max=${1:-3}
|
|
|
|
for i in $(seq 1 $max); do
|
|
NODE_ENV=test NODE_APP_INSTANCE=$i node dist/server.js &
|
|
sleep 1
|
|
done
|