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

前端 未结 12 886
执笔经年
执笔经年 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:32

    Just had this problem too. I did the following to solve it: (assuming you're in project dir)

    rm -rf .git
    git init 
    git add .
    git commit -m "First commit"
    heroku create --stack cedar
    git push heroku master
    

    A slightly involved solution to create a new application, but at least it works. Hope that helps!

提交回复
热议问题