ActivityPub-federated video streaming platform using P2P directly in your web browser
Add checks to the scripts (they has to be executed at the root of the project)
Chocobozzzecef65b6050f
diff --git a/scripts/clean_test.sh b/scripts/clean_test.shindex e46b5ecd5e..ef146e0916 100755--- a/scripts/clean_test.sh+++ b/scripts/clean_test.sh@@ -1,6 +1,8 @@#!/bin/bash+basePath=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )+for i in $(seq 1 6); doprintf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo- rm -rf "./test$i"+ rm -rf "$basePath/../test$i"donediff --git a/scripts/run_servers.sh b/scripts/run_servers.shindex f99ca6bd90..83768178c0 100755--- a/scripts/run_servers.sh+++ b/scripts/run_servers.sh@@ -1,5 +1,10 @@#!/bin/bash+if [ ! -f server.js ]; then+ echo "The script has to be executed at the root of the project."+ exit -1+fi+NODE_ENV=test NODE_APP_INSTANCE=1 node server.js &sleep 1NODE_ENV=test NODE_APP_INSTANCE=2 node server.js &