问题
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