I read all the previous posts about it but still couldn't correct it. I added requirements.txt and Procfile in the directory in my computer created by Heroku. Procfile reads "web: python Chat Server.py". Also added runtime.txt in the same directory that reads "python-3.6.2".However, it keeps giving the same error again in the command prompt. How can I solve this? This is the entire error message:
"C:\Users\asus\chat_server>git push heroku master Counting objects: 6, done. Delta compression using up to 4 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (6/6), 1.14 KiB | 585.00 KiB/s, done. Total 6 (delta 1), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> App not compatible with buildpack: https://codon-buildpacks.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 boiling-stream-15219. remote: To https://git.heroku.com/boiling-stream-15219.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/boiling-stream-15219.git' "
git add requirements.txt Procfile
andgit commit
, before pushing to heroku. - Ilayaraja