Skip to content

Commit 6b19e4e

Browse files
committed
Save screenlogs additionally to regular logs
1 parent 64d250d commit 6b19e4e

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ node_modules
99
settings.json
1010
config/local.yml
1111
config/local-*.yml
12+
screenlog.*

restart.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
./stop.sh $1
2-
./start.sh $1
2+
./start.sh $1

start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Make it so the default deployment is "main"
22
DEPLOYMENT=${1:-main}
33
# Start a screen called "mojiradiscordbot-<deployment>" with the node process
4-
/usr/bin/screen -S mojiradiscordbot-$DEPLOYMENT -d -m bash -c "NODE_ENV=$DEPLOYMENT node bin" ; exit
4+
/usr/bin/screen -S mojiradiscordbot-$DEPLOYMENT -L -d -m bash -c "NODE_ENV=$DEPLOYMENT node bin" ; exit

stop.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Send ^C to screen session window
2-
screen -S mojiradiscordbot-$1 -X stuff $'\003'
2+
screen -S mojiradiscordbot-$1 -X stuff $'\003'

0 commit comments

Comments
 (0)