首页 > 解决方案 > 页面在本地主机上运行良好,但在 Heroku 应用程序上运行良好

问题描述

我的应用程序在我的本地主机上完美运行。当我将应用程序启动到 heroku 时,我在某个页面上收到可怕的“我们很抱歉,但出了点问题......”消息。此页面在我的本地主机上运行良好。

这是我针对该请求的 heroku 日志。

2018-12-15T00:52:49.151152+00:00 heroku[router]: at=info method=GET path="/leagues/5" host=guarded-peak-32026.herokuapp.com request_id=11b8da33-7361-4549-bab2-1a78d5bdb087 fwd="73.196.32.111" dyno=web.1 connect=0ms service=28ms status=500 bytes=1827 protocol=https

我不确定错误是什么或如何修复它。任何意见,将不胜感激。

标签: ruby-on-railsheroku

解决方案


推荐阅读