I have a Rails app that is running on a production server with Apache and Phusion Passenger. The app works fine locally (i.e., on my machine) when using Mongrel, but whenever I try to load a URL on the production server, it returns HTTP 500. I know the server is working properly, because I can get the static elements of the application (e.g., JavaScript files, stylesheets, images) just fine. I've also checked the Passenger status and it is loading the app (it must be, since the app's 500 Internal Server Error page is returned, not just the default Apache one). When I load the app via script/console production and do something like app.get("/"), 500 is also returned.
The problem is that there is nothing in the log files to indicate the problem. production.log is empty (and when I switch Passenger to use the development environment, development.log is empty, too). The Apache error logs show no problems with Apache, either. I'm stumped as to what's going on and I'm not sure how to diagnose the problem.
I know I may have been a bit vague, but can anyone give a suggestion on what the problem may be? Or at least a way I can go about diagnosing it?
Thanks,
----
Michael Dippery
mdip...@gmail.com | www.monkey-robot.com
- Chris Holtz
I'm in line with Chris's advice... but I'm wondering one thing....
When Michael ran "script/console production" on his server, would he
see the same loading errors (Ruby syntax/ Gem issues) as running
"script/server RAILS_ENV=production" ? (as the Rails environment is
loaded in both script/console and script/server")
-Jim
-- Michael
-- Michael