diff --git a/restart.sh b/restart.sh new file mode 100755 index 000000000..cae028e0a --- /dev/null +++ b/restart.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./stop.sh && ./start.sh \ No newline at end of file diff --git a/start.sh b/start.sh old mode 100644 new mode 100755 index 624882191..4b5ea9827 --- a/start.sh +++ b/start.sh @@ -1,6 +1,9 @@ #!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -# nohup node ~/tc-api/node_modules/.bin/actionHero start 2>&1 & +if [ -a deploy/env.sh ]; then + . deploy/env.sh +fi + forever start -d -v -a -l "${DIR}/log/forever.log" "${DIR}/node_modules/actionhero/bin/actionhero" start #forever start -d -a -l "${DIR}/log/forever.log" "${DIR}/node_modules/actionhero/bin/actionhero" startCluster --workers=10 diff --git a/stop.sh b/stop.sh old mode 100644 new mode 100755