【发布时间】:2018-09-01 07:42:33
【问题描述】:
将我的 django 站点部署到 heroku(终于!)后,我得到了“错误代码 H14”。然后我尝试缩放测功机,但出现以下错误:
heroku ps:scale web=1
Scaling dynos... !
▸ Couldn't find that process type.
过程文件:
web: gunicorn Django_work.wsgi
项目链接: https://github.com/AlfredMulder/Django_work
完整日志:
2018-03-22T18:08:02.000000+00:00 app[api]: Build started by user xanderhref@protonmail.com
2018-03-22T18:08:50.392177+00:00 app[api]: Attach DATABASE (@ref:postgresql-curved-78959) by user xanderhref@protonmail.com
2018-03-22T18:08:50.392177+00:00 app[api]: Release v4 created by user xanderhref@protonmail.com
2018-03-22T18:08:50.658643+00:00 app[api]: Release v5 created by user xanderhref@protonmail.com
2018-03-22T18:08:50.658643+00:00 app[api]: Deploy 11510f4e by user xanderhref@protonmail.com
2018-03-22T18:08:02.000000+00:00 app[api]: Build succeeded
2018-03-22T18:08:57.301783+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=boiling-wildwood-73678.herokuapp.com request_id=b3bbcf39-a609-4568-b7f1-d6e83c877b48 fwd="178.64.164.115" dyno= connect= service= status=503 bytes= protocol=https
2018-03-22T18:08:59.619356+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=boiling-wildwood-73678.herokuapp.com request_id=31d8fc72-120b-4006-ae41-c8b95a99357f fwd="178.64.164.115" dyno= connect= service= status=503 bytes= protocol=https
2018-03-22T18:08:59.792765+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=boiling-wildwood-73678.herokuapp.com request_id=0add7b9c-0f00-4514-8ca5-7c2e353b4773 fwd="178.64.164.115" dyno= connect= service= status=503 bytes= protocol=https
2018-03-22T18:09:50.176125+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=boiling-wildwood-73678.herokuapp.com request_id=b9ffc587-ffda-4b82-85c0-22032f288b3f fwd="178.64.164.115" dyno= connect= service= status=503 bytes= protocol=https
【问题讨论】:
-
错误代码 H14 和该消息都告诉您它找不到 Web 进程。因此,由于某种原因,它无法识别您的 Procfile。请发布您的项目文件布局和完整日志。
-
我添加了项目链接和完整日志。感谢您的帮助。
标签: django python-3.x heroku