python - 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--
解决方案
这不是将其用作--log-file-
. 它是--log-file
。
推荐阅读
- database - 可以拆分数据库中的值和参数吗
- android - 如何从多个活动中调用单个服务?
- facebook - 批准 Facebook 上的应用程序需要多长时间?
- angular - 访问 json 中的数组对象以在 Angular 5 中显示下拉值
- visio - 向现有组添加形状会在 MS visio 中引发异常
- colors - lstlisting 代码是蓝色而不是黑色 - 关键字样式接管?
- php - 使用 PHP 从 JSON 数组中获取值
- html - 如何将 HTML 添加到文本中并将其添加到 DOM 以显示它?
- java - 无法将模型对象添加到“/”中的 jsp 视图,但相同的方法正在调用 /index
- android - 如何在firebase数据库中搜索一对