Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable explicit stack traces on Ruby on Rails website

I have a Ruby on Rails Spree commerce app where I have explicit stack traces enabled in production (e.g., instead of the "We're sorry but something went wrong" message there is a long stack trace with developer-friendly and user unfriendly information).

I remember that I activated this to see what went wrong in production, but now I want to disable it again. Unfortunately I cannot find nor remember how to do this.

I hope someone can tell me how to configure my app to redirect to the standard 500 and 404 pages.

like image 293
Erwin Rooijakkers Avatar asked Feb 11 '14 19:02

Erwin Rooijakkers


1 Answers

Open project_root/config/environments/production.rb And set config.consider_all_requests_local = false

like image 105
FaithoftheFallen Avatar answered Sep 29 '22 06:09

FaithoftheFallen