git push heroku master: Heroku push rejected, no Cedar-supported app detected

前端 未结 12 888
执笔经年
执笔经年 2020-12-14 10:00

I tried running:

$ git push heroku master    
-----

Total 7121 (delta 2300), reused 6879 (delta 2228)
 !     Heroku push rejected, no Cedar-supported app de         


        
12条回答
  •  眼角桃花
    2020-12-14 10:43

    I struggled with this issue for a long time and the only solution was Vincent van Leeuwen's, but I didn't understand why. The problem turned out to be that I was working from a local branch other than master. So when I was running

    git push heroku master
    

    I was actually pushing

    (local) master->(heroku) master
    

    and not

    (local) current_branch -> (heroku) master
    

    as I intended. This failed because my local master branch didn't have requirements.txt, Procfile, etc.

    The solution is:

    git push heroku current_branch:master
    

    See heroku docs for more.

    Hope this helps.

提交回复
热议问题