diff --git a/ecosystem.config.js b/ecosystem.config.js index a8ef42a..9771e95 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -7,6 +7,7 @@ module.exports = { script : "./node_modules/@colyseus/proxy/bin/proxy", instances : 1, exec_mode : 'cluster', + log_date_format: "YYYY-MM-DD HH:mm:ss", env: { PORT: 2567, } @@ -19,10 +20,12 @@ module.exports = { exec_mode : 'fork', // IMPORTANT: do not use cluster mode. increment_var : 'PORT', // increment a environment variable for each instance launched // error_file : '', // error日志路径 - // out_file : '', // out日志路径 + // out_file : '', // out日志路径, + log_date_format: "YYYY-MM-DD HH:mm:ss", env: { PORT: 4000, - DEBUG: "colyseus:errors,colyseus:matchmaking,jc:*", + // DEBUG: "colyseus:errors,colyseus:matchmaking,jc:*", + DEBUG: "colyseus:errors,jc:*", NODE_ENV: "production", } }, @@ -34,6 +37,7 @@ module.exports = { exec_mode : 'fork', // IMPORTANT: do not use cluster mode. // error_file : '', // error日志路径 // out_file : '', // out日志路径 + log_date_format: "YYYY-MM-DD HH:mm:ss", env: { PORT: 2500, DEBUG: "colyseus:errors,jc:*",