diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2015-11-24 09:53:27 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2015-11-24 09:53:27 +0100 |
commit | ecef65b6050f53e90e2239dd593706189ef8f03d (patch) | |
tree | bef86cf1cf9d09fd1c4c20593d28930f0cde943c /scripts/run_servers.sh | |
parent | 2dd5b570a6bb774eda2fb9b9ce7cffd0741eb0a2 (diff) | |
download | PeerTube-ecef65b6050f53e90e2239dd593706189ef8f03d.tar.gz PeerTube-ecef65b6050f53e90e2239dd593706189ef8f03d.tar.zst PeerTube-ecef65b6050f53e90e2239dd593706189ef8f03d.zip |
Add checks to the scripts (they has to be executed at the root of the
project)
Diffstat (limited to 'scripts/run_servers.sh')
-rwxr-xr-x | scripts/run_servers.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/run_servers.sh b/scripts/run_servers.sh index f99ca6bd9..83768178c 100755 --- a/scripts/run_servers.sh +++ b/scripts/run_servers.sh | |||
@@ -1,5 +1,10 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | if [ ! -f server.js ]; then | ||
4 | echo "The script has to be executed at the root of the project." | ||
5 | exit -1 | ||
6 | fi | ||
7 | |||
3 | NODE_ENV=test NODE_APP_INSTANCE=1 node server.js & | 8 | NODE_ENV=test NODE_APP_INSTANCE=1 node server.js & |
4 | sleep 1 | 9 | sleep 1 |
5 | NODE_ENV=test NODE_APP_INSTANCE=2 node server.js & | 10 | NODE_ENV=test NODE_APP_INSTANCE=2 node server.js & |