RoR App错误部署到heroku

时间:2018-03-10 04:15:20

标签: ruby-on-rails

我制作了一个非常基本的RoR应用程序并部署到heroku。

进入heroku给出的网站后,我看到了这样的信息:

"应用程序错误 应用程序中发生错误,无法提供您的页面。如果您是应用程序所有者,请检查日志以获取详细信息。"

我尝试过 heroku restart

我得到的错误日志是:

  

2018-03-10T04:04:08.519299 + 00:00 heroku [router]:at = error code = H10 desc =" App崩溃" method = GET path =" /" host = agile-chamber-72076.herokuapp.com request_id = 4dda4e3d-450f-43e3-91a7-cf19d4f9b108 fwd =" 71.58.221.62" dyno = connect = service = status = 503 bytes = protocol = https

     

2018-03-10T04:04:08.917146 + 00:00 heroku [router]:at = error code = H10 desc =" App崩溃" method = GET path =" /favicon.ico" host = agile-chamber-72076.herokuapp.com request_id = 3845e226-5c2c-43e8-a2ee-0c0b4bae66e7 fwd =" 71.58.221.62" dyno = connect = service = status = 503 bytes = protocol = https

     

2018-03-10T04:04:34.531282 + 00:00 heroku [router]:at = error code = H10 desc =" App崩溃" method = GET path =" /" host = agile-chamber-72076.herokuapp.com request_id = 9c25fcbd-1939-48ec-8603-5b2424c2182e fwd =" 71.58.221.62" dyno = connect = service = status = 503 bytes = protocol = https

     

2018-03-10T04:04:34.822620 + 00:00 heroku [router]:at = error code = H10 desc =" App崩溃" method = GET path =" /favicon.ico" host = agile-chamber-72076.herokuapp.com request_id = c4a93941-8d85-4631-b4a2-51d627403022 fwd =" 71.58.221.62" dyno = connect = service = status = 503 bytes = protocol = https

1 个答案:

答案 0 :(得分:0)

您需要对Heroku错误H10 - App crashed进行问题排查,如果您在Heroku信息中心或计算机rails c上运行heroku run rails c,应用程序会因多种原因而崩溃,然后会出现更多特定错误ActiveRecord查询和行号有问题就像13,文件是../app/models/或类似的东西,我写了一些参考文章,为什么有时app会崩溃到Heroku。

一些可能的原因

  • ActiveRecord关联未得到妥善处理。
  • Heroku需要的宝石(第0.20或0.11.0页)
  • 供应商/高速缓存
  • 重构时有些代码被破坏了。
  • 数据库架构未更新。
  • Ruby版本已更改

或其他