From 56ac84d0a32844c7b7df4c584dccb6e6c17e35de Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 25 Dec 2016 12:05:47 +0100 Subject: Fix real world script --- scripts/play.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/play.sh b/scripts/play.sh index 33dc1a545..ab812025c 100755 --- a/scripts/play.sh +++ b/scripts/play.sh @@ -5,7 +5,9 @@ if [ ! -f server.js ]; then exit -1 fi -for i in 1 2 3; do +max=${1:-3} + +for i in $(seq 1 $max); do NODE_ENV=test NODE_APP_INSTANCE=$i node server.js & sleep 1 done -- cgit v1.2.3