简体   繁体   中英

Django App Heroku Deployment: App not compatible with buildpack

I've been through a lot of possible answers from here to everywhere, and it seems the problem persists.

What is causing this, and how can I fix it?

$ git push heroku master
Counting objects: 295, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (272/272), done.
Writing objects: 100% (295/295), 678.12 KiB | 8.07 MiB/s, done.
Total 295 (delta 114), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
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 mydjangoappblog.
remote:
To https://git.heroku.com/mydjangoappblog.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/mydjangoappblog.git'

My Procfile :

配置文件

And gunicorn :

独角兽

It seems your Procfile is not valid

Modify it as following:

web: gunicorn django_project.wsgi

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