NodeJS app builds with Heroku, but it shows application error

后端 未结 2 2038
醉酒成梦
醉酒成梦 2021-01-24 06:35

I am setting up a NodeJS Heroku app. I just want an empty app up and running.

My dir includes a package.json and an app.js file.

The Heroku app builds without e

相关标签:
2条回答
  • 2021-01-24 07:14

    Looks like you're missing a Procfile

    https://devcenter.heroku.com/articles/getting-started-with-nodejs#define-a-procfile

    0 讨论(0)
  • 2021-01-24 07:34

    Maybe you need file Procfile

    web: node app.js
    

    0 讨论(0)
提交回复
热议问题