在Heroku托管上成功构建并部署了应用程序,但随后出现了应用程序错误

时间:2019-05-11 16:52:22

标签: node.js heroku pm2

首先尝试了所有社区解决方案,但没有任何效果。我的应用程序在本地运行,在端口4000上没有任何问题。

该procfile具有

web: node app.js 

让heroku运行

packages.json具有:

  "scripts": {
    "preinstall": "npm install pm2 -g",
    "start": "node ./node_modules/.bin/pm2-runtime app.js -i max"
 },

还在本地系统上全局安装了PM2。

有帮助吗?部署后,我会出现5个小时的“应用程序错误”。

0 个答案:

没有答案
相关问题