Add proper error page for request timeouts

This commit is contained in:
Eugen Rochko
2017-04-02 19:43:09 +02:00
parent 34ff11c496
commit 5b12624847
4 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,6 @@
Rack::Timeout::Logger.disable
Rack::Timeout.service_timeout = false
if Rails.env.production?
Rack::Timeout.service_timeout = 90
Rack::Timeout::Logger.disable
end