首页 > 解决方案 > Gunicorn“错误:无法识别的参数:--log-file--”

问题描述

我正在尝试将我的 django 应用程序部署到 heroku,但每次尝试时,我都会在日志中看到此错误:

gunicorn: error: unrecognized arguments: --log-file--

但我的Procfile看起来像这样(我没有忘记保存它或任何东西)

web: gunicorn post_project.wsgi --log-file -

除了 Heroku 的这几行之外,我无法真正关注任何可能导致该错误的原因

这个应用程序正在使用免费的测功机

web gunicorn post_project.wsgi --log-file--

标签: pythondjangoherokuweb-deployment

解决方案


这不是将其用作--log-file-. 它是--log-file


推荐阅读