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

前端 未结 5 1760
梦谈多话
梦谈多话 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:19

    I have encountered this issue a few time before and it was because I was trying to push a remote branch to heroku.

    To solve the problem, instead of using:

    git push heroku master
    

    I used:

    git push heroku my-branch:master
    

    This pushes the remote branch my-branch in the git repository to the master branch of heroku.

提交回复
热议问题