pm2配置:
{
"apps": [
{
"name": "Oauth",
"script": "rpcServ.exe -c D:/GoWorks/src/xxxxxx/xxxxxxx/configs/config_demo1.json",
"cwd": "./",
"node_args": "",
"interpreter": "",
"interpreter_args": "",
"watch": true,
"ignore_watch": [
],
"exec_mode": "cluster_mode",
"instances": 1,
"max_memory_restart": 8,
"error_file": "./logs/app-err.log",
"out_file": "./logs/app-out.log",
"merge_logs": true,
"log_date_format": "YYYY-MM-DD HH:mm:ss",
"min_uptime": "60s",
"max_restarts": 30,
"autorestart": true,
"cron_restart": "",
"restart_delay": 60,
"env": {
"NODE_ENV": "production",
"REMOTE_ADDR": ""
},
"env_dev": {
"NODE_ENV": "development",
"REMOTE_ADDR": ""
},
"env_test": {
"NODE_ENV": "test",
"REMOTE_ADDR": ""
}
}
]
}