🐞 fix(monitor): 补充分布式服务器监控配置

This commit is contained in:
liangtongchuan
2023-04-12 14:26:59 +08:00
parent 31db7061b7
commit e5bf8dc304
2 changed files with 27 additions and 1 deletions
+5
View File
@@ -12,3 +12,8 @@ npm install #安装依赖库
npm run build
node pm2DistributeConfig.js ${1} ${2} #使用pm2来做进程管理,生成进程配置文件
pm2 start pomeloPm2Start.json #pm2 启动游戏服务器
json=$(cat config.json)
env=$(echo "$json" | grep -o '"env": *"[^"]*"' | sed 's/"env": *"\(.*\)"$/\1/')
echo $env
xtransit stop all
xtransit start xtransitConfig/$env.js