heroku 中的 H14 错误 - “没有正在运行的网络进程”

新手上路,请多包涵

部署到 heroku 时发生错误 H14 这是我的 procfile:

 web: gunicorn -w 4 -b 0.0.0.0:$PORT -k gevent main:app

登录 heroku:

 2017-01-23T10:42:58.904480+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=meetcapstone.herokuapp.com request_id=df88efb5-a81a-4ac0-86dc-4e03d71266bb fwd="81.218.117.137" dyno= connect= service= status=503 bytes=
2017-01-23T10:42:59.009135+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=meetcapstone.herokuapp.com request_id=21cea981-36b0-4410-891f-548bbc29f0ee fwd="81.218.117.137" dyno= connect= service= status=503 bytes=

要求:

 Flask==0.11.1
passlib==1.7.0
SQLAlchemy==1.1.5
Werkzeug==0.11.15
gunicorn==19.0.0
gevent==1.2.1

原文由 Ron Miles 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 266
1 个回答

这里的问题是您没有运行任何网络测功机。您可以通过以下方式告诉 Heroku 执行此操作:

 $ heroku ps:scale web=1

这将迫使 Heroku 启动一个 web dyno,从而执行你的 gunicorn 命令。

原文由 rdegges 发布,翻译遵循 CC BY-SA 3.0 许可协议

推荐问题