✨ feat(config): 新建服务器脚本增加对egg监控配置
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user