获得“开发”生产模式错误 [英] Getting "development" errors in production mode

查看:168
本文介绍了获得“开发”生产模式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题:我以生产模式运行我的服务器,一切都很好,但我不断收到错误信息,就像在开发模式下一样。所以例如,而不是404页面,我得到没有路由匹配/ foo与{:method =>:get}。另外,例外通知程序停止发送异常。



我将<%=Environment:#{RAILS_ENV}%>放入视图中,以便仔细检查我确实在生产模式,这是真的。从来没有这样。



我在一个共享服务器上的轨道2.3.8,正在运行乘客。





Ron

解决方案

升级Phusion乘客似乎是解决方案。


I'm having a strange problem: I'm running my server in production mode, everything is fine, but I keep getting error messages like they appear in development mode. So for example instead of a 404 page, I'm getting "No route matches "/foo" with {:method=>:get}". Also "exception notifier" stopped sending exceptions.

I put <%= "Environment: #{RAILS_ENV}" %> into a view, to double-check I am definitly in production mode, which is true. Never had this before.

I'm on rails 2.3.8 on a shared server, running passenger.

Thanks for any help,

Ron

解决方案

upgrading your Phusion Passenger seems to be the solution.

这篇关于获得“开发”生产模式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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