✨ feat(monitor): 修改监控配置,显示机器名进程名
This commit is contained in:
@@ -2,4 +2,9 @@
|
||||
npm install #安装依赖库
|
||||
npm run build
|
||||
node pm2Config.js #使用pm2来做进程管理,生成进程配置文件
|
||||
pm2 start pomeloPm2Start.json #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
|
||||
|
||||
Reference in New Issue
Block a user