簡體   English   中英

Django 應用 Heroku 部署:應用與 buildpack 不兼容

[英]Django App Heroku Deployment: App not compatible with buildpack

我已經從這里到任何地方都經歷了很多可能的答案,但問題似乎仍然存在。

這是什么原因造成的,我該如何解決?

$ 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'

我的Procfile

配置文件

還有gunicorn

獨角獸

您的 Procfile 似乎無效

修改如下:

web: gunicorn django_project.wsgi

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM