suchen

Heim  >  Fragen und Antworten  >  Hauptteil

node.js – pm2 meldet einen Fehler beim Starten des Node-Projekts. Callback wurde bereits aufgerufen

Entschuldigung, was ist das 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"
      }
    }
  }
}
高洛峰高洛峰2811 Tage vor1921

Antworte allen(1)Ich werde antworten

  • 为情所困

    为情所困2017-05-31 10:43:35

    请贴出你得json文件

    Antwort
    0
  • StornierenAntwort