Saturday, March 26, 2016

Deploy Django to Heroku - Push rejected

I am trying deploy my Django application to heroku and I get an error when I perform git push heroku master command


My structure directory is the following



And the content of requirements/production.txt is:

-r base.txt  gunicorn==19.4.5  dj-database-url==0.4.0


requirements/base.txt have this content:


Django==1.9.2
djangorestframework==3.3.2
Pillow==3.1.1
psycopg2==2.6.1
Markdown==2.6.5
django-filter==0.12.0
django-storages-redux==1.3
django-suit==0.2.16
django-boto==0.3.9
django-multiselectfield==0.1.3


The process that I am perform for deploy to my app to heroku is the following and the error is push rejected:


(uleague) ➜  pickapp git:(master) ✗ heroku create fuupbol --buildpack heroku/python  Creating fuupbol... done, stack is cedar-14  Setting buildpack to heroku/python... done  https://fuupbol.herokuapp.com/ | https://git.heroku.com/fuupbol.git  (uleague) ➜  pickapp git:(master) ✗ git remote -v  heroku	https://git.heroku.com/fuupbol.git (fetch)  heroku	https://git.heroku.com/fuupbol.git (push)  origin	https://bgarcial@bitbucket.org/bgarcial/pickapp.git (fetch)  origin	https://bgarcial@bitbucket.org/bgarcial/pickapp.git (push)  (uleague) ➜  pickapp git:(master) ✗ git push heroku master  Counting objects: 195, done.  Delta compression using up to 8 threads.  Compressing objects: 100% (92/92), done.  Writing objects: 100% (195/195), 516.34 KiB | 0 bytes/s, done.  Total 195 (delta 93), reused 195 (delta 93)  remote: Compressing source files... done.  remote: Building source:  remote:   remote: -----> Using set buildpack heroku/python  remote:   remote:  !     Push rejected, failed to detect set buildpack heroku/python  remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure  remote:   remote: Verifying deploy....  remote:   remote: !	Push rejected to fuupbol.  remote:   To https://git.heroku.com/fuupbol.git   ! [remote rejected] master -> master (pre-receive hook declined)  error: failed to push some refs to 'https://git.heroku.com/fuupbol.git'  (uleague) ➜  pickapp git:(master) ✗


I follow the getting started tutorial for deploy in heroku web page and in their samples, the requirements.txt and the settings.py were as a isolated files in the root project and not nested under folders as a settings/ folder or a requirements /folder

This have related for my error of push rejected ?



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5d683621-9fb3-4ddc-8f5a-58297350b4f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment