Heroku页面显示错误,而“heroku日志”不要 [英] Heroku page displays an error while "heroku logs" do not
问题描述
我的Heroku托管的Rails站点显示发生了错误,但是当我运行 heroku logs
时,没有列出任何错误。它确实显示了导致错误的动作,但它以与其他所有成功动作相同的方式列出它。
My Heroku-hosted Rails site is showing that an error has occurred, but when I run heroku logs
no error is listed. It does show the action that is causing the error but it lists it the same way it does every other successful action.
这是第一次 heroku日志
未显示此网站的错误。有没有人有这个问题,并找到了解决方案?
This is the first time heroku logs
hasn't displayed the errors for this site. Has anyone had this problem before and found a solution?
推荐答案
对于Rails 4,添加 rails_12factor
gem添加到您的Gemfile中,以便获取应用程序的详细日志。此外,它还修复了有关Heroku的其他一些问题。
For Rails 4, add rails_12factor
gem to your Gemfile in order to get detailed logs of your application. Additionally it fixes some other weired problems about Heroku too.
将此添加到您的Gemfile中:
Add this to your Gemfile:
gem'rails_12factor'
gem 'rails_12factor'
这篇关于Heroku页面显示错误,而“heroku日志”不要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!