diff --git a/pm2.config.js b/pm2.config.js index 1553ec014..6c493acc4 100644 --- a/pm2.config.js +++ b/pm2.config.js @@ -6,18 +6,21 @@ module.exports = { autorestart: false, time: true, "node-args": ["--debug=7000"], + watch: false }, { name: "www", script: "./bin/www", time: true, "node-args": ["--debug=7000"], + watch: false }, { name: "chat", script: "./modules/chat.js", time: true, "node-args": ["--debug=7000"], + watch: false }, ], }; diff --git a/pm2.json b/pm2.json index 7532b9169..3ec927aea 100644 --- a/pm2.json +++ b/pm2.json @@ -7,7 +7,7 @@ "time": true, "max_restarts": 2, "node_args": "--inspect=0.0.0.0:9230", - "watch": true, + "watch": false, "ignore_watch": [ "node_modules", "*.log", @@ -56,7 +56,7 @@ "time": true, "max_restarts": 2, "node_args": "--inspect=0.0.0.0:9231", - "watch": true, + "watch": false, "ignore_watch": [ "node_modules", "*.log", @@ -105,7 +105,7 @@ "time": true, "max_restarts": 2, "node_args": "--inspect=0.0.0.0:9232", - "watch": true, + "watch": false, "ignore_watch": [ "node_modules", "*.log", diff --git a/update_site.sh b/update_site.sh index d0bbdb4e5..4af830ea1 100755 --- a/update_site.sh +++ b/update_site.sh @@ -2,7 +2,7 @@ bash ./update_prep.sh git pull; -pm2 scale games +1 --no-autorestart; +pm2 scale games +1 --no-autorestart --watch false; while read port; do redis-cli publish deprecate $port; @@ -11,4 +11,4 @@ done < to_delete_port rm to_delete_port sleep 2; -pm2 restart www chat; +pm2 restart www chat --watch false;