]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - scripts/play.sh
Translated using Weblate (Occitan)
[github/Chocobozzz/PeerTube.git] / scripts / play.sh
CommitLineData
0e4ffb4b
LA
1#!/bin/sh
2
3set -eu
93534495 4
19452347 5if [ ! -f "dist/server.js" ]; then
93534495
C
6 echo "Missing server file (server.js)."
7 exit -1
8fi
9
56ac84d0
C
10max=${1:-3}
11
0e4ffb4b 12for i in $(seq 1 "$max"); do
75fb0c0b 13 NODE_ENV=test NODE_APP_INSTANCE=$i node dist/server.js &
93534495
C
14 sleep 1
15done