pm2配置保留

pm2配置:

{
  "apps": [
    {
      "name": "Oauth",
      "script": "rpcServ.exe -c D:/GoWorks/src/commaai.cn/commams-oauth/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": ""
      }
    }
  ]
}
 

猜你喜欢

转载自blog.csdn.net/ycc297876771/article/details/89310951
pm2
今日推荐