feat(config): 新建服务器脚本增加对egg监控配置

This commit is contained in:
liangtongchuan
2023-04-27 23:38:11 +08:00
parent 706821f5c5
commit 354e2ea9de
2 changed files with 19 additions and 1 deletions

View File

@@ -178,8 +178,14 @@ function setupGmConfig() {
modFile(configPath, redisPassReg, `${REDIS_PASS}`);
}
// ! 尚未添加短连接 plugin 配置
// 配置 web-server plugin
function setupEggPlugin() {
const reg: RegExp = /(env: \[.*)(?=])/;
modFile(path.join(__dirname, WEB_SERVER_PLUGIN_PATH), reg, `$1, '${ENV}'`);
modFile(path.join(__dirname, GM_SERVER_PLUGIN_PATH), reg, `$1, '${ENV}'`);
}
// setupEggPlugin();
// updateDatabase();
// setupGameApp();
// setupPm2Config();