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

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

    Heroku needs a requirements.txt file, which helps Heroku know what dependencies need to be installed for your Django project. You can use a tool generate your requirements.txt file.

    Run in command line

    pip freeze > requirements.txt

    which will create a requirements.txt file with all your installed packages, such as Django, django-registration, etc...

    This link may be helpful: http://tutorial.djangogirls.org/deploy/README.html

提交回复
热议问题