Use scripty instead of writing shell commands in package.json
This commit is contained in:
parent
1342381694
commit
9353449515
18 changed files with 128 additions and 39 deletions
11
scripts/play.sh
Executable file
11
scripts/play.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
if [ ! -f server.js ]; then
|
||||
echo "Missing server file (server.js)."
|
||||
exit -1
|
||||
fi
|
||||
|
||||
for i in 1 2 3; do
|
||||
NODE_ENV=test NODE_APP_INSTANCE=$i node server.js &
|
||||
sleep 1
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue