@ -27,6 +27,7 @@ var server = http.createServer(app.callback());
server.listen(port);
server.on('error', onError);
server.on('listening', onListening);
console.log('*************************************App listening on ', port);
/**
* Normalize a port into a number, string, or false.
@ -8,7 +8,7 @@ const log_config = {
"pattern": "yyyy-MM-dd.log",
"alwaysIncludePattern": true,
"numBackups": 7, // the number of old files that matches the pattern to keep (excluding the hot file).
"compress": true,
"compress": false,
}
// "everything": {
// "type": "multiFile",
@ -24,7 +24,10 @@ module.exports = {
error_file: err_log,
out_file: out_log,
// instances: 1,
watch: false
// watch: false, // default: true
watch: ["."],
watch_delay: 1000,
ignore_watch : ["node_modules", "logs", "pm2", "doc", "public", "views", "\\.git", "*.log"],
]