【问题标题】:Django H14 Heroku error, how do i fix this?Django H14 Heroku 错误,我该如何解决?
【发布时间】:2020-12-27 03:02:56
【问题描述】:

2020-09-08T17:05:06.205027+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=uvdocdash.herokuapp.com request_id=f17ceaee-3e7c-4eba-aebf-19dd4b424eee fwd="70.39.71.29" dyno= connect= service= status=503 bytes= protocol=https

我在日志中收到此错误,到目前为止,我无法找出我的应用程序无法运行的原因。这是一个 django 应用程序,据我所知,requirments.txt 是正确的。

asgiref==3.2.10
Django==3.1.1
gunicorn==20.0.4
pytz==2020.1
sqlparse==0.3.1
django-heroku >= 0.3.1

【问题讨论】:

    标签: django heroku


    【解决方案1】:

    将 Procfile 添加到包含 manage.py 的文件夹中。只需添加一个名为 Procfile 的文件并在该文件中添加 web: gunicorn projectname.wsgi 。保存并推送。

    【讨论】:

      猜你喜欢
      • 2018-08-18
      • 1970-01-01
      • 2020-02-05
      • 1970-01-01
      • 2012-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多