$ ls
Procfile __pycache__/ app.py database.py db instance/ migrations/ requirements.txt runtime.txt static/ templates/ tests/
ADMIN@DESKTOP-8CEKMLK MINGW64 ~/HarmonyHub/myapp (main)
$ git push heroku main --force
Enumerating objects: 352, done.
Counting objects: 100% (352/352), done.
Delta compression using up to 4 threads
Compressing objects: 100% (292/292), done.
Writing objects: 100% (352/352), 15.17 MiB | 19.30 MiB/s, done.
Total 352 (delta 157), reused 74 (delta 31), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (157/157), done.
remote: Updated 46 paths from 3399c32
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-22 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: !
remote: ! ## Warning - The same version of this code has already been built: 6988d22e377b6c9e06305e57b4db17f2c5b35aa0
remote: !
remote: ! We have detected that you have triggered a build from source code with version 6988d22e377b6c9e06305e57b4db17f2c5b35aa0
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote: !
remote: ! If you are developing on a branch and deploying via git you must run:
remote: !
remote: ! git push heroku <branchname>:main
remote: !
remote: ! This article goes into details on the behavior:
remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to harmonyhub504.
Been failing to push to Heroku even after doing pip freeze > requirements.txt
and also have a Procfile with web: gunicorn app:app
New contributor
Judge Kriegler lawoko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.