aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/play.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/play.sh')
-rwxr-xr-xscripts/play.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/play.sh b/scripts/play.sh
index ac2a10b12..69725da93 100755
--- a/scripts/play.sh
+++ b/scripts/play.sh
@@ -1,4 +1,6 @@
1#!/usr/bin/env sh 1#!/bin/sh
2
3set -eu
2 4
3if [ ! -f "dist/server.js" ]; then 5if [ ! -f "dist/server.js" ]; then
4 echo "Missing server file (server.js)." 6 echo "Missing server file (server.js)."
@@ -7,7 +9,7 @@ fi
7 9
8max=${1:-3} 10max=${1:-3}
9 11
10for i in $(seq 1 $max); do 12for i in $(seq 1 "$max"); do
11 NODE_ENV=test NODE_APP_INSTANCE=$i node dist/server.js & 13 NODE_ENV=test NODE_APP_INSTANCE=$i node dist/server.js &
12 sleep 1 14 sleep 1
13done 15done