【问题标题】:Blank Heroku app throwing H14 error空白 Heroku 应用程序抛出 H14 错误
【发布时间】:2014-08-25 00:14:21
【问题描述】:

我刚刚使用命令“heroku create”创建了一个空白 Heroku 应用程序,并导航到指定给该应用程序的地址。页面内容如下:

应用程序错误

应用程序和您的页面出现错误 无法送达。请稍后再试。

如果您是应用程序所有者,请查看您的日志以了解详细信息。

我查看了命令行中的日志,它说:

2014-07-03T17:02:42.854237+00:00 heroku[router]: at=error code=H14 desc="没有运行网络进程" method=GET path="/" 主机=aqueous-beach-3520.herokuapp.com request_id=68df453d-11c7-4087-a10c-ce12e3117161 fwd="104.33.31.5" 测功机=连接=服务=状态=503字节= 2014-07-03T17:02:43.933191+00:00 heroku[路由器]: at=error code=H14 desc="没有运行网络进程" method=GET path="/favicon.ico" 主机=aqueous-beach-3520.herokuapp.com request_id=2738adb7-65f6-40dd-b29f-0cbe2cbd60f3 fwd="104.33.31.5" 测功机=连接=服务=状态=503字节= 2014-07-03T17:02:51.767010+00:00 heroku[路由器]: at=error code=H14 desc="没有运行网络进程" method=GET path="/" 主机=aqueous-beach-3520.herokuapp.com request_id=3b863dd5-ded8-462a-865f-6a39157ee414 fwd="104.33.31.5" 测功机=连接=服务=状态=503字节= 2014-07-03T17:02:52.134163+00:00 heroku[路由器]: at=error code=H14 desc="没有运行网络进程" method=GET path="/favicon.ico" 主机=aqueous-beach-3520.herokuapp.com request_id=08f65bbe-3ab5-4cef-9154-8c8b3ced919e fwd="104.33.31.5" 测功机=连接=服务=状态=503字节= 2014-07-03T17:03:04.942054+00:00 heroku [路由器]: at=error code=H14 desc="没有运行网络进程" method=GET path="/" 主机=aqueous-beach-3520.herokuapp.com request_id=21d8938b-2ed8-48ca-ba69-ef753759ee9e fwd="104.33.31.5" 测功机=连接=服务=状态=503字节= 2014-07-03T17:03:05.325708+00:00 heroku [路由器]: at=error code=H14 desc="没有运行网络进程" method=GET path="/favicon.ico" 主机=aqueous-beach-3520.herokuapp.com request_id=12f6ffa0-1d0a-4827-b3f3-1a6dad604177 fwd="104.33.31.5" 测功机=连接=服务=状态=503字节= 2014-07-03T17:04:27.395593+00:00 heroku [路由器]: at=error code=H14 desc="没有运行网络进程" method=GET path="/" 主机=aqueous-beach-3520.herokuapp.com request_id=adb01b6b-2763-4270-ad0c-4b12f207c5c3 fwd="104.33.31.5" 测功机=连接=服务=状态=503字节= 2014-07-03T17:04:27.882267+00:00 heroku[路由器]: at=error code=H14 desc="没有运行网络进程" method=GET path="/favicon.ico" 主机=aqueous-beach-3520.herokuapp.com request_id=852edcba-a708-41ec-90e4-306366cf68d3 fwd="104.33.31.5" dyno=连接=服务=状态=503字节=

我已经做了一点冲浪,但是大多数人在推送后似乎都遇到了H14错误。我还没有做过任何事情。我也尝试过重新启动 heroku 并缩放测功机。帮忙?

编辑:

一旦我将现有应用程序推送到 Heroku,这个问题就消失了。无论出于何种原因,我似乎都无法部署空白的 Heroku 应用程序。

【问题讨论】:

    标签: ruby-on-rails heroku


    【解决方案1】:

    您需要将您的网络测功机从 0 扩展到 1。您目前没有运行任何一个。为此,请访问 heroku.com,单击您的应用程序,将 web dyno 拖到一个,然后单击“应用更改”!如果这不起作用,请告诉我

    【讨论】:

    • 我实际上没有看到任何可拖动的东西。在仪表板的“Dyno”部分下,它完全是空的。
    【解决方案2】:

    您还没有任何应用程序代码!

    您必须使用定义流程的 Procfile 推送应用程序代码。在完成之前,您将无法扩展您的 web dyno,因为您没有定义任何 web dyno 进程。

    如果如您的标签所示,您想专门部署一个 Rails 应用程序,请尝试关注this tutorial

    【讨论】:

      猜你喜欢
      • 2020-11-17
      • 1970-01-01
      • 2021-04-27
      • 2012-12-19
      • 2014-10-17
      • 2018-11-30
      • 1970-01-01
      • 2011-03-05
      • 2023-03-30
      相关资源
      最近更新 更多