pm2启动node项目报错 Callback was already called

WUSO01
  • 245

图片描述

请问下这是什么问题

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"
      }
    }
  }
}
回复
阅读 3.2k
2 个回答
Godtoy
  • 2.4k

请贴出你得json文件

朋友问题解决了吗,我也遇到了这个问题

宣传栏