Heroku页面显示错误,而“heroku日志”不要 [英] Heroku page displays an error while "heroku logs" do not

查看:98
本文介绍了Heroku页面显示错误,而“heroku日志”不要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆