Permalink
Browse files

Update config.ru ttl and exception configs

  • Loading branch information...
rwdaigle committed Feb 20, 2012
1 parent 7d39915 commit c39813c605a4ccf7e9d618bba17511b3d84788b2
Showing with 4 additions and 2 deletions.
  1. +4 −2 config.ru
View
@@ -5,9 +5,11 @@ Bundler.require(:default, ENV['RACK_ENV'] || 'development')
require 'rack/contrib'
require 'newrelic_rpm'
-use Rack::ShowExceptions unless ENV['RACK_ENV'] == 'production'
+if ENV['RACK_ENV'] == 'production'
+ use Rack::ShowExceptions
+end
-ttl = ENV['DEFAULT_TTL'].to_i || 3600
+ttl = ENV['DEFAULT_TTL'] ? ENV['DEFAULT_TTL'].to_i : 3600
use Rack::Cache,
:verbose => true,
:default_ttl => ttl,

0 comments on commit c39813c

Please sign in to comment.