From 061f5d2cff763201b59a73ece180380b938c3842 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 25 Aug 2022 14:23:52 +0800 Subject: [PATCH] =?UTF-8?q?pm2=E6=97=A5=E5=BF=97=E5=AD=98=E6=94=BE?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/pm2Config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/pm2Config.js b/game-server/pm2Config.js index d1f500e60..ee3db70b8 100644 --- a/game-server/pm2Config.js +++ b/game-server/pm2Config.js @@ -62,7 +62,7 @@ pm2Master.args.push('port='+masterConfig.port); pm2Master.args.push('env='+envType); pm2Master.args.push('mode=stand-alone'); pm2Master.cwd= cwd; -if(envType == 'sq1') { +if(envType.startsWith('sq')) { pm2Master.out_file = '/zyz_logs/pm2/'+masterConfig.id+"_app.log"; pm2Master.error_file='/zyz_logs/pm2/'+masterConfig.id+'_error.log'; } else {