From 8c308c2bf7f658945d80be9d5880361238635f5b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 9 Jun 2015 17:41:40 +0200 Subject: Spawn --- scripts/clean_test.sh | 5 +++++ scripts/run_servers.sh | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100755 scripts/clean_test.sh create mode 100755 scripts/run_servers.sh (limited to 'scripts') 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 @@ +#!/bin/bash + +printf "use petube-test1;\ndb.dropDatabase();\nuse petube-test2;\ndb.dropDatabase();\nuse petube-test3;\ndb.dropDatabase();" | mongo + +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 @@ +#!/bin/bash + +NODE_ENV=test NODE_APP_INSTANCE=1 node server.js & +sleep 1 +NODE_ENV=test NODE_APP_INSTANCE=2 node server.js & +sleep 1 +NODE_ENV=test NODE_APP_INSTANCE=3 node server.js & -- cgit v1.2.3