0

我有一个在我的登台环境中导致异常的操作,但不是将通知发送到 hoptoad(它应该,hoptoad 测试 rake 任务有效......),它向我显示了标准的 rails stacktrace 页面,就像它在开发中所做的那样.

我的暂存环境本质上是我的生产环境的副本,唯一的区别是 rails 环境是通过乘客设置的。

这可能是什么原因?我应该在哪里寻找?我还没有确认生产会做同样的事情,因为我们还没有设置适当的生产环境,但我认为它也会以同样的方式运行。

4

1 回答 1

1

Are you sure that your staging instance is running in the correct environment? Have you tried outputting Rails.env somewhere in your views just to make sure?

I only ask because you mentioned seeing a stack trace page, which shouldn't happen in a production environment unless you're making the requests locally, or you have config.action_controller.consider_all_requests_local set to true in your environment config.

于 2009-12-31T17:19:11.273 回答