【问题标题】:ProcFile declares types -> (none) ProcFileProcFile 声明类型 -> (none) ProcFile
【发布时间】:2021-12-14 17:36:00
【问题描述】:

我想通过 heroku 托管 Django 服务器,而我的 procfile 看起来像这样

web: gunicorn DjangoHerokuApp.Portfoliowebapp.wsgi

我的文件结构 procfile 和 requirements.txt 都在根文件夹中 enter image description here

它不断地给我这个错误

Procfile declares types -> (none)

这是我的 requirements.txt

asgiref==3.4.1
Django==4.0
gunicorn==20.1.0
sqlparse==0.4.2
tzdata==2021.5

请帮忙!我被困了2天

【问题讨论】:

标签: python django gunicorn


【解决方案1】:

尝试使用 网站:gunicorn Portfoliowebapp.wsgi

【讨论】:

    猜你喜欢
    • 2012-07-17
    • 2021-05-24
    • 2013-08-06
    • 2012-08-31
    • 2011-09-14
    • 2020-10-04
    • 2013-06-01
    • 1970-01-01
    • 2013-07-24
    相关资源
    最近更新 更多