conf: pm2 watch

main
Lei OT 10 months ago
parent 3700fe5dea
commit 1043845e87

@ -27,6 +27,7 @@ var server = http.createServer(app.callback());
server.listen(port); server.listen(port);
server.on('error', onError); server.on('error', onError);
server.on('listening', onListening); server.on('listening', onListening);
console.log('*************************************App listening on ', port);
/** /**
* Normalize a port into a number, string, or false. * Normalize a port into a number, string, or false.

@ -8,7 +8,7 @@ const log_config = {
"pattern": "yyyy-MM-dd.log", "pattern": "yyyy-MM-dd.log",
"alwaysIncludePattern": true, "alwaysIncludePattern": true,
"numBackups": 7, // the number of old files that matches the pattern to keep (excluding the hot file). "numBackups": 7, // the number of old files that matches the pattern to keep (excluding the hot file).
"compress": true, "compress": false,
} }
// "everything": { // "everything": {
// "type": "multiFile", // "type": "multiFile",

@ -24,7 +24,10 @@ module.exports = {
error_file: err_log, error_file: err_log,
out_file: out_log, out_file: out_log,
// instances: 1, // instances: 1,
watch: false // watch: false, // default: true
watch: ["."],
watch_delay: 1000,
ignore_watch : ["node_modules", "logs", "pm2", "doc", "public", "views", "\\.git", "*.log"],
} }
] ]
} }

Loading…
Cancel
Save