heroku for node: ! Heroku push rejected, no Cedar-supported app detected

前端 未结 5 1849
梦谈多话
梦谈多话 2021-02-14 01:28

I am new to heroku and express.js. I try to go through the tutorial, but I cannot make it with the step \'git push heroku master\'. I followed the tutorial exactly. Below is the

5条回答
  •  天命终不由人
    2021-02-14 02:06

    did you read the Getting Started with Node.js on Heroku article on Heroku Dev Center?

    You need to declare your process type with Procfile. To do so, create a file named Procfile, with the following content:

    web: node web.js
    

    assume that your javascript file is called web.js.

    p.s. don't forget to add the Procfile to git and commit it.

提交回复
热议问题