From 6046c0f86cfd06562841ffcfee293ac04d875d9d Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Tue, 21 Jul 2020 10:05:29 +0100 Subject: [PATCH] When updated, it should now trigger pm2 to restart the server --- ecosystem.config.js | 2 +- update.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 27b2c55..2e6d98a 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -2,6 +2,6 @@ module.exports = { 'apps' : [{ 'name': 'Blocklist', 'script': './server.js', - 'watch': './server.js' + 'watch': './updated.txt' }] }; diff --git a/update.sh b/update.sh index 9b7c1ec..4a58916 100755 --- a/update.sh +++ b/update.sh @@ -28,3 +28,5 @@ for file in ${OTHERLIST[@]}; do done cp $DOWNLOADS/*.txt $PUBLIC/ + +touch ./updated.txt