增加pm2启动脚本

This commit is contained in:
zhl 2023-03-17 15:57:54 +08:00
parent 6871449d12
commit b3c1559ea6

22
start.json Normal file
View File

@ -0,0 +1,22 @@
{
"apps": [
{
"name": "wallet-mail",
"script": "npm",
"args": "run prod:api",
"cwd": "/data/apps/wallet-mail",
"max_memory_restart": "1024M",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"watch": true,
"ignore_watch": ["node_modules", "logs", "fixtures", "tasks"],
"instances": 1,
"exec_mode": "cluster",
"env": {
"NODE_ENV": "production"
},
"env_production": {
"NODE_ENV": "production"
}
}
]
}