【问题标题】:No web processes running while deploying django project部署 django 项目时没有运行 Web 进程
【发布时间】:2020-05-19 10:36:36
【问题描述】:

我正在尝试在 heroku 上部署我的 django 网站... 当我输入---->git push heroku master(运行良好)时,但它没有呈现我的主页 我的网站。 如果我输入命令----->heroku 日志 然后 就像,

2020-05-19T10:09:02.516378+00:00 app[api]: Release v1 created by user rajparmar23801@gmail.com
2020-05-19T10:09:02.733920+00:00 app[api]: Enable Logplex by user rajparmar23801@gmail.com
2020-05-19T10:09:02.516378+00:00 app[api]: Initial release by user rajparmar23801@gmail.com
2020-05-19T10:09:02.733920+00:00 app[api]: Release v2 created by user rajparmar23801@gmail.com
2020-05-19T10:09:25.000000+00:00 app[api]: Build started by user rajparmar23801@gmail.com
2020-05-19T10:10:13.527798+00:00 app[api]: @ref:postgresql-animated-29167 completed 
provisioning, setting DATABASE_URL. by user rajparmar23801@gmail.com
2020-05-19T10:10:13.513153+00:00 app[api]: Running release v3 commands by user 
rajparmar23801@gmail.com
2020-05-19T10:10:13.527798+00:00 app[api]: Release v4 created by user rajparmar23801@gmail.com
2020-05-19T10:10:13.513153+00:00 app[api]: Attach DATABASE (@ref:postgresql-animated-29167) by 
user rajparmar23801@gmail.com
2020-05-19T10:10:13.824421+00:00 app[api]: Release v5 created by user rajparmar23801@gmail.com
2020-05-19T10:10:13.824421+00:00 app[api]: Deploy 1a2f93e6 by user rajparmar23801@gmail.com
2020-05-19T10:10:23.000000+00:00 app[api]: Build succeeded
2020-05-19T10:16:14.542057+00:00 heroku[router]: at=error code=H14 desc="No web processes 
running" method=GET path="/" host=whatwilldoapp.herokuapp.com request_id=d12ca631-fcbc-4240- 
b823-d24d2fa373d6 fwd="27.61.152.130" dyno= connect= service= status=503 bytes= protocol=https
2020-05-19T10:17:27.847271+00:00 heroku[router]: at=error code=H14 desc="No web processes 
running" method=GET path="/" host=whatwilldoapp.herokuapp.com request_id=cbe42696-4611-42f7- 
aa2a-9c90912e43d9 fwd="27.61.152.130" dyno= connect= service= status=503 bytes= protocol=https

【问题讨论】:

  • 您是否指定了 Web 进程?你Procfile的内容是什么?

标签: python django heroku


【解决方案1】:

您需要做的就是扩大您的测功机。您可以在命令行中使用

$ heroku ps:scale web=1

【讨论】:

    猜你喜欢
    • 2016-06-02
    • 2021-04-30
    • 2012-04-25
    • 2012-07-09
    • 2022-08-07
    • 1970-01-01
    • 2013-09-04
    • 2021-03-31
    • 1970-01-01
    相关资源
    最近更新 更多