我在Django中将Gunicorn的Procfile放入什么?

时间:2020-05-18 10:31:05

标签: django heroku gunicorn procfile

我已经通过git repo上传到了Heroku,但是我很难找到放置在Procfile中的gunicorn命令。这是我到wsgi.py的回购路径 Root Mid WSGI folder

那我应该在Procfile中放什么?

web:gunicorn image_editor.wsgi --log文件-

是我当前的Procfile,但是没有找到模块错误。谢谢


编辑:错误是此ModuleNotFoundError:没有名为“ image_editor”的模块

2 个答案:

答案 0 :(得分:0)

在您的本地环境中执行pip install gunicorn,并将其添加到requirements.txt

答案 1 :(得分:0)

我必须更改项目结构,Procfile应该与manage.py