heroku: no default language could be detected for this app

后端 未结 11 802
予麋鹿
予麋鹿 2020-12-03 22:40

First time using Heroku. Trying to push. I have run the command:

heroku create --buildpack heroku/python

and it displayed

$ hero         


        
11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 23:22

    For future references, you must ensure that you are pushing the branch with your code to heroku master.

    If you branched from your master branch and all your code is on a, say, develop, push that to the heroku master.

    So instead of:

    git push heroku master
    

    You would do something like:

    git push heroku develop:master
    

    This question has important details on this How to push different local Git branches to Heroku/master

提交回复
热议问题