diff options
Diffstat (limited to 'scripts/play.sh')
-rwxr-xr-x | scripts/play.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/play.sh b/scripts/play.sh new file mode 100755 index 000000000..33dc1a545 --- /dev/null +++ b/scripts/play.sh | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | if [ ! -f server.js ]; then | ||
4 | echo "Missing server file (server.js)." | ||
5 | exit -1 | ||
6 | fi | ||
7 | |||
8 | for i in 1 2 3; do | ||
9 | NODE_ENV=test NODE_APP_INSTANCE=$i node server.js & | ||
10 | sleep 1 | ||
11 | done | ||