日志:修改日志配置
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user