【发布时间】: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天
【问题讨论】:
-
这能回答你的问题吗? What is the reason for "Procfile declares types -> (none)" in Heroku? 是
Procfile不是ProcFile。