Check 500 internal server errors in production mode on rails 3.2

I have my production mode application in my linode account, and I get on one page 500 internal server error messages:

We're sorry, but something went wrong.

However, this page works fine in my development environment.

How can I debug this error?

How can I see the start of an error in my production mode?

I want the rails to display errors in production mode.

How can i do this?

Thank!

+3
source share
2 answers

If you have access to ssh, log in to your server through ssh and go to the rails log directory, which is inside your rails directory.

tail production.log. , tail -n100 production.log ( ).

heroku, , heroku logs . ( https://devcenter.heroku.com/articles/logging)

_notification gem https://github.com/rails/exception_notification , stacktrace , Hoptoad (http://hoptoadapp.com/) Exceptional (http://www.exceptional.io/), exception_notification.

, , , 3000 cd rails rails server production , debug config/environment/production.rb, , , .

, .

+4
tail -n100 production.log

100 . , .

tail -1000f log/production.log
+1

All Articles