Heroku Documentation needs updating/fixing.
See original GitHub issueThe Heroku deployment documentation is minimal, but that isn’t necessarily a problem. The problem is that it doesn’t work, and Heroku doesn’t tell me why.
When I go to git push heroku master
I get:
remote: -----> App not compatible with buildpack: https://github.com/heroku/heroku-buildpack-python
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
The heroku-buildpack-python docs are also fairly sparse but do mention:
A
Pipfile
orrequirements.txt
must be present at the root of your application’s repository.
Neither of which is, with cookiecutter-django. I tried touch
ing one, but that didn’t solve the issue (same bug) suggesting this might not be the cause.
Either way, the Heroku docs might need a little work if there are more steps involved in deploying to Heroku that have become necessary since those docs were written.
Thanks!
I did not run
heroku config:set DJANGO_AWS_ACCESS_KEY_ID=YOUR_AWS_ID_HERE
heroku config:set DJANGO_AWS_SECRET_ACCESS_KEY=YOUR_AWS_SECRET_ACCESS_KEY_HERE
heroku config:set DJANGO_AWS_STORAGE_BUCKET_NAME=YOUR_AWS_S3_BUCKET_NAME_HERE
heroku config:set DJANGO_MAILGUN_SERVER_NAME=YOUR_MALGUN_SERVER
heroku config:set DJANGO_MAILGUN_API_KEY=YOUR_MAILGUN_API_KEY
heroku config:set MAILGUN_SENDER_DOMAIN=YOUR_MAILGUN_SENDER_DOMAIN
heroku config:set PYTHONHASHSEED=random
heroku config:set DJANGO_ADMIN_URL=\^somelocation/
But I have a hard time imagining not running those commands would cause this error.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9
Top GitHub Comments
@zfrenchee I have tested the entire process of generating and deploying the project from scratch, and everything works as it should.
please, generate your project from again
I recorded all the steps I took to make deploy:
https://asciinema.org/a/6POEYRA3K7AyTmZzd13ecJtts
That’s because the requirements files for different env (local/production) are inside the requirements folder. Try fixing the path should help.