When updated, it should now trigger pm2 to restart the server

This commit is contained in:
Martin Donnelly 2020-07-21 10:05:29 +01:00
parent fa08d617ff
commit 6046c0f86c
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,6 @@ module.exports = {
'apps' : [{
'name': 'Blocklist',
'script': './server.js',
'watch': './server.js'
'watch': './updated.txt'
}]
};

View File

@ -28,3 +28,5 @@ for file in ${OTHERLIST[@]}; do
done
cp $DOWNLOADS/*.txt $PUBLIC/
touch ./updated.txt