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

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

    All the above solutions dont mention that what matters is where is your .git initialised. Actually when you try push on heroku you should be doing it from the directory where you had initialsed the git itself. Also the directory you are uploading should be the one where you have files like

    • requirements.txt, Procfile, virtualenv, manage.py and .gitignore

      etc. In short Heroku needs all files to understand the type of project you want to upload so these files should be accessible on the root directory.

提交回复
热议问题