heroku: no default language could be detected for this app

后端 未结 11 772
予麋鹿
予麋鹿 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:29

    If you've tried some of the above answers and the problem still persists;

    Ensure you are git "committing" in the right directory.

    For instance, if your file structure is as follow:

    /src
        /...
        manage.py
    .gitignore
    Pipfile/requirements.txt
    Pipfile.lock
    Procfile
    runtime.txt
    

    Ensure you're git adding, committing, pushing etc. from the root directory. Since we work mostly in the src/ or main_app_directory/ we tend to forget to change directory back to root before committing.

提交回复
热议问题