From 211485ce74c7149db134933d93ca7d801a445c27 Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 1 Feb 2021 16:28:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC,=20=E5=87=8F=E5=B0=91=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index a8ef42a..68dd663 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -22,7 +22,8 @@ module.exports = { // out_file : '', // out日志路径 env: { PORT: 4000, - DEBUG: "colyseus:errors,colyseus:matchmaking,jc:*", + // DEBUG: "colyseus:errors,colyseus:matchmaking,jc:*", + DEBUG: "colyseus:errors,jc:*", NODE_ENV: "production", } }, From f22fc4d27e49a36459f9e5987ef49481a7946088 Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 1 Feb 2021 17:05:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC,=20=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 68dd663..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,7 +20,8 @@ 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:*", @@ -35,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:*",