node.js - pm2 reports an error when starting the node project Callback was already called
高洛峰
高洛峰 2017-05-31 10:41:35
0
1
1886

Excuse me, what is the problem?

ecosystem.json

{
  "apps": [
    {
      "name": "question-system",
      "script": "app.js",
      "env": {
        "COMMON_VARIABLE": "true"
      },
      "env_production": {
        "NODE_ENV": "production"
      }
    }
  ],
  "deploy": {
    "production": {
      "user": "***",
      "host": ["39.108.151.44"],
      "port": "***",
      "ref": "origin/master",
      "repo": "git@github.com:WUSO01/blog-admin.git",
      "path": "/www/blog/productioin",
      "ssh_options": "StricHostKeyChecking=no",
      "post-deploy": "npm install && bower install && pm2 startOrRestart ecosystem.json --env production",
      "env": {
        "NODE_ENV": "production"
      }
    }
  }
}
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
为情所困

Please post your json file

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template