aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/play.sh
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-04-30 11:17:50 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-04-30 12:56:36 +0200
commit9353449515ff6881a54ce6887297b7eab2855186 (patch)
treed3a6a3e84b3684e3689c4b40ed2e1d53b26a3dc8 /scripts/play.sh
parent1342381694456da6bfcb01a6f9e23c54cc90c82e (diff)
downloadPeerTube-9353449515ff6881a54ce6887297b7eab2855186.tar.gz
PeerTube-9353449515ff6881a54ce6887297b7eab2855186.tar.zst
PeerTube-9353449515ff6881a54ce6887297b7eab2855186.zip
Use scripty instead of writing shell commands in package.json
Diffstat (limited to 'scripts/play.sh')
-rwxr-xr-xscripts/play.sh11
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
3if [ ! -f server.js ]; then
4 echo "Missing server file (server.js)."
5 exit -1
6fi
7
8for i in 1 2 3; do
9 NODE_ENV=test NODE_APP_INSTANCE=$i node server.js &
10 sleep 1
11done