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