How to disable explicit stack traces on a Ruby on Rails website

I have a Ruby on Rails Spree trading application in which I have explicit stack traces included in production (for example, instead of the message “We're sorry but something is wrong”) there is a long stack trace with developer and user friendly unfriendly information).

I remember that I activated this to understand what went wrong in the factory, but now I want to turn it off again. Unfortunately, I cannot find and do not remember how to do this.

I hope someone tells me how to set up my application to redirect to standard 500 and 404 pages.

+4
source share
1 answer

Open project_root/config/environments/production.rb and installconfig.consider_all_requests_local = false

+7
source

Source: https://habr.com/ru/post/1526410/


All Articles