]>
Commit | Line | Data |
---|---|---|
0e4ffb4b LA |
1 | #!/bin/sh |
2 | ||
3 | set -eu | |
93534495 | 4 | |
19452347 | 5 | if [ ! -f "dist/server.js" ]; then |
93534495 C |
6 | echo "Missing server file (server.js)." |
7 | exit -1 | |
8 | fi | |
9 | ||
56ac84d0 C |
10 | max=${1:-3} |
11 | ||
0e4ffb4b | 12 | for i in $(seq 1 "$max"); do |
75fb0c0b | 13 | NODE_ENV=test NODE_APP_INSTANCE=$i node dist/server.js & |
93534495 C |
14 | sleep 1 |
15 | done |