简体   繁体   中英

Rails: hide errors errors in production environment

I run my rails application (Rails 4.2.x) with the passenger module for Apache.

Is there a way to not show error messages:

在此处输入图片说明

Thanks.

确保在config/environment/production.rb文件中将以下设置设置为false:

config.consider_all_requests_local = false

Don't run your production mode like this, you may hack it that it would show errors like that. But you got all your errors in your logs.

check log/production.log for your errors.

确保在config/environments/production.rb文件中具有以下设置:

config.consider_all_requests_local       = false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM