diff --git a/server/bin/www b/server/bin/www index e2147cd..f7a1380 100644 --- a/server/bin/www +++ b/server/bin/www @@ -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. diff --git a/server/config/log4.js b/server/config/log4.js index 54e7326..2610aca 100644 --- a/server/config/log4.js +++ b/server/config/log4.js @@ -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", diff --git a/server/ecosystem.config.js b/server/ecosystem.config.js index d2802e4..bc39c8c 100644 --- a/server/ecosystem.config.js +++ b/server/ecosystem.config.js @@ -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"], } ] }