update pm2 启动脚本
This commit is contained in:
parent
ec7f0fb751
commit
6a42d79cae
@ -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"
|
||||
|
18
start.json
18
start.json
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user