Getting Rails to display development style errors in production
Asked Answered
C

2

14

I deployed a Rails 3.0.3 app to my production server and it's giving me a 500 error. This is being deployed on Dreamhost, so I looked in the logs for my domain and there is nothing and the logs for my app also show nothing.

How do I get Rails displaying actual error messages in production so I can sort this out?

Chesser answered 16/1, 2011 at 23:35 Comment(0)
L
18

Try changing the consider_all_requests_local setting in environments/production.rb.

Lactary answered 17/1, 2011 at 0:56 Comment(5)
That was my thought as well, but I tried it and restarted my app and it still does not seem to work. Any other thoughts?Chesser
Has it ever worked in production (is anything working)? If so, then I would probably evaluate recent changes. If not, and the log files aren't helping, then I would start with a simple test case, a "Hello World" app, and just try to get that running first.Lactary
No its a new app, but really its not much more than a Hello world. It even works if I SSH into the server and run the console in production mode!Chesser
Do you have other Rails apps running successfully on Dreamhost? Not being snarky, just wondering if this is a configuration issue particular to Dreamhost Rails deployments (in which case there may be some blog/newsgroup posts out there covering the gotchas).Lactary
Hey, I do have other apps running on DH, just not Rails 3 ones. This was was such a pain I hosted it on Heroku. It was up and running in seconds.Chesser
S
2

I had the same issue, it was due to a bug in Aibrake in version 3.1.1. Rollbacking to 3.0.9 solved the issue for me

Spotty answered 19/6, 2012 at 20:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.