Rails - 生产模式中的错误 [英] Rails - error in production mode
本文介绍了Rails - 生产模式中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Rails 3.2.3
Rails 3.2.3
在生产模式下,我有一个错误,它显示标准的我们很抱歉页面。在开发模式下,没有错误。
In production mode I have an error and it displays standard "we're sorry" page. In development mode there is no error.
我需要获取有关错误的更多信息,所以我想关闭我们很抱歉页面,看到错误。我知道它必须被称为轨道生产,我在本地电脑上做。但是如何关闭我们很抱歉页面?
I need to get more information about the error so I want to turn off "we're sorry" page and see the error. I know it has to be lauched as "rails s -e production" and I do it at my local computer. But how can turn off "we're sorry" page?
推荐答案
在config / environments / production.rb
In config/environments/production.rb
暂时更改
config.consider_all_requests_local = false
to
config.consider_all_requests_local = true
这篇关于Rails - 生产模式中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文