Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 1652c89

Browse files
committed
Merge pull request #446 from appirio-tech/SUP-954-reliable-restarts
Sup 954 reliable restarts
2 parents 6e7311e + 43023e4 commit 1652c89

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

restart.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
./stop.sh && ./start.sh

start.sh

100644100755
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
33

4-
# nohup node ~/tc-api/node_modules/.bin/actionHero start 2>&1 &
4+
if [ -a deploy/env.sh ]; then
5+
. deploy/env.sh
6+
fi
7+
58
forever start -d -v -a -l "${DIR}/log/forever.log" "${DIR}/node_modules/actionhero/bin/actionhero" start
69
#forever start -d -a -l "${DIR}/log/forever.log" "${DIR}/node_modules/actionhero/bin/actionhero" startCluster --workers=10

stop.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)