update pm2 启动脚本

This commit is contained in:
zhl 2023-04-06 16:48:03 +08:00
parent ec7f0fb751
commit 6a42d79cae
2 changed files with 1 additions and 19 deletions

View File

@ -1 +1 @@
pm2 start npm --name "chain-client" --log-date-format "YYYY-MM-DD HH:mm:ss" -- run "run:prod"
pm2 start npm --name "chain-client" --log-date-format "YYYY-MM-DD HH:mm:ss" -- run "run:dev:api"

View File

@ -17,24 +17,6 @@
"env_production": {
"NODE_ENV": "production"
}
},
{
"name": "chain-monitor",
"script": "npm",
"args": "run prod:monitor",
"cwd": "/data/apps/chain-client",
"max_memory_restart": "1024M",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"watch": false,
"ignore_watch": ["node_modules", "logs", "fixtures", "tasks"],
"instances": 1,
"exec_mode": "fork",
"env": {
"NODE_ENV": "production"
},
"env_production": {
"NODE_ENV": "production"
}
}
]
}