Getting “development” errors in production mode

一个人想着一个人 提交于 2019-12-11 02:23:02

问题


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


回答1:


Sounds a lot like this one: http://code.google.com/p/phusion-passenger/issues/detail?id=109

The general recommendation is to remove the config.ru from the root of your app. It seems to confuse Passenger quite a bit.




回答2:


upgrading your Phusion Passenger seems to be the solution.



来源:https://stackoverflow.com/questions/4330093/getting-development-errors-in-production-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!