aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/play.sh
blob: ab812025cda98d52c1251173ed558980e1a03d33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env sh

if [ ! -f 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 server.js &
  sleep 1
done