🐞 fix(日志): sq7服务器pm2日志生成位置错

This commit is contained in:
luying
2023-01-31 10:07:18 +08:00
parent 520fd7eae0
commit e2cca19b06
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ pm2Master.args.push('port='+masterConfig.port);
pm2Master.args.push('env='+envType);
pm2Master.args.push('mode=stand-alone');
pm2Master.cwd= cwd;
let onairEnvs = ['sq1', 'sq3', 'sq4'];
let onairEnvs = ['sq1', 'sq3', 'sq4', 'sq7'];
if(onairEnvs.indexOf(envType) > -1) {
pm2Master.out_file = '/zyz_logs/pm2/'+masterConfig.id+"_app.log";
pm2Master.error_file='/zyz_logs/pm2/'+masterConfig.id+'_error.log';