Search code examples
pythondjangogitherokuheroku-cli

Problem this deploy django project to Heroku


I try deploy django app to heroku and get errors:

remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpack: heroku/python
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to tandt-online-webchat.
remote: 
To https://git.heroku.com/tandt-online-webchat.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: не удалось отправить некоторые ссылки в «https://git.heroku.com/tandt-online-webchat.git»

I done all what need: git add . git commit -m "releze heroku vers 1" and when i do git push heroku master i get this error

I have all needs files: Procfile and requirements.txt In Procfile i have: web: gunicorn web_chat.wsgi and to requirements.txt I input pip freeze, and i shure what i have gunicorn her.

What I do wrong?


Solution

  • A common mistake is that you have misspelt your requirements.txt file. Another mistake that could have occurred is that your commits have gone very wrong. For this, reinitialise the git repository locally. Then make sure your requirements.txt file is being added. You can check this with

    git status
    

    If this still doesn't work please let me know.