日志:修改日志配置

This commit is contained in:
luying
2022-01-07 18:08:29 +08:00
parent 7284b22544
commit e579457a39
8 changed files with 47 additions and 31 deletions

View File

@@ -91,8 +91,15 @@ for (serverType in serversConfig) {
}
appPm2Config.cwd = cwd;
appPm2Config.out_file = './logs/' + singleServer.id + '_app.log';
appPm2Config.error_file = './logs/' + singleServer.id + '_error.log';
if(masterEnvType == 'sq1') {
appPm2Config.out_file = '/zyz_logs/pm2/'+singleServer.id+"_app.log";
appPm2Config.error_file='/zyz_logs/pm2/'+singleServer.id+'_error.log';
} else {
appPm2Config.out_file = './logs/' + singleServer.id + '_app.log';
appPm2Config.error_file = './logs/' + singleServer.id + '_error.log';
}
resultJson.apps.push(appPm2Config);
}