简体   繁体   中英

Heroku App Not Compatible with Python Buildpack

I'm trying to deploy a Django/Python application that runs locally, but will not deploy to Heroku. When trying to deploy, I receive the error:

App not compatible with buildpack: https://codon-
buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz

I've tried multiple solutions to this issue. Currently my build pack is set to the Python build pack. (heroic build packs returns heroku/python). I have a Procfile, requirements.txt, runtime.txt, and Pipfile.lock, all of which usually resolve this issue.

Procfile:

web: gunicorn foodForThought.wsgi:application --log-file -

requirements.txt:

Django==1.11.8
pytz==2017.3

runtime.txt:

python-3.6.0

Pipfile.lock:

[requires]
python_full_version = "3.6.0"

All the aforementioned files are located in my home directory, and I'm also working in a virtual environment. Why is this error occurring?

So here's what I've come up with. I was also stuck with this problem until I found this command.

heroku buildpacks:add --index 1 heroku/python

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM