diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/clean_test.sh | 5 | ||||
-rwxr-xr-x | scripts/run_servers.sh | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/clean_test.sh b/scripts/clean_test.sh new file mode 100755 index 000000000..8d71215f2 --- /dev/null +++ b/scripts/clean_test.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | printf "use petube-test1;\ndb.dropDatabase();\nuse petube-test2;\ndb.dropDatabase();\nuse petube-test3;\ndb.dropDatabase();" | mongo | ||
4 | |||
5 | rm -rf ./test1 ./test2 ./test3 | ||
diff --git a/scripts/run_servers.sh b/scripts/run_servers.sh new file mode 100755 index 000000000..f99ca6bd9 --- /dev/null +++ b/scripts/run_servers.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | NODE_ENV=test NODE_APP_INSTANCE=1 node server.js & | ||
4 | sleep 1 | ||
5 | NODE_ENV=test NODE_APP_INSTANCE=2 node server.js & | ||
6 | sleep 1 | ||
7 | NODE_ENV=test NODE_APP_INSTANCE=3 node server.js & | ||