【问题标题】:Heroku Is giving me 'error h14 for my django projectHeroku 为我的 django 项目提供了“错误 h14”
【发布时间】:2022-01-16 05:01:24
【问题描述】:

当我进入我的 heroku 项目时,它说运行 heroku logs --tail,当我这样做时,我得到:

2022-01-16T04:52:26.342707+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=myproject.herokuapp.com request_id=584f14b8-99da-4cfc-bfad-1811755db6fb fwd="49.149.136.159" dyno= connect= service= status=503 bytes= protocol=https
2022-01-16T04:52:27.375325+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=myproject.herokuapp.com request_id=63993a67-e160-4762-a520-9164646b74f7 fwd="49.149.136.159" dyno= connect= service= status=503 bytes= protocol=https

我试过 heroku ps:scale web=1 但我明白了:

Scaling web processes... failed
 !    No such type as web

这是我的过程文件:

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

如何让我的网站正常运行?

【问题讨论】:

  • 试试这个web: gunicorn riseupontario.wsgi:application --log-file -
  • @sumithran 仍然无法正常工作...啊!

标签: django heroku heroku-postgres heroku-cli


【解决方案1】:

知道了...我的 procfile 被命名为“procfile”而不是“Procfile”,而且它在我的 gitignore 中。

【讨论】:

    猜你喜欢
    • 2020-12-27
    • 1970-01-01
    • 2015-09-22
    • 2012-08-03
    • 2018-08-18
    • 2020-06-19
    • 2022-07-14
    • 2020-06-02
    • 2021-04-27
    相关资源
    最近更新 更多