【发布时间】:2014-07-23 07:57:49
【问题描述】:
我已将我的应用程序部署到 heroku。我可以成功推送它。但是当运行 heroku open 时,它会显示错误:
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
如果您是应用程序所有者,请查看您的日志以了解详细信息。
然后我使用命令 heroku 记录它显示错误,如下所示:
...
2014-07-27T01:18:25.726069+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=********.herokuapp.com request_id=1ded5a34-7d01-440b-9fb4-0041fdc64715 fwd="110.74.222.57" dyno= connect= service= status=503 bytes=
请帮帮我!
【问题讨论】:
-
它立即在之前说了什么?
-
您是否将页面设置为root。我认为它正在寻找显示为“www.yoursitename.com\”的路线,但如果没有页面是根页面,它就不会在那里。
-
在 router.rb 中是的,我将 root :to =>'homes#index' 设置为默认加载页面
-
能否发布您的 config/routes.rb 以及更多(或全部)错误日志?
标签: ruby-on-rails heroku