Skip to content

Commit

Permalink
Moved Rack::Timeout to production only for happier developing
Browse files Browse the repository at this point in the history
  • Loading branch information
mghaught committed Sep 17, 2015
1 parent 20f7bce commit a8ebc99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ ruby '2.2.3'

gem 'rails', '4.1.2'
gem 'puma', '~> 2.13'
gem 'rack-timeout', '~> 0.2.4'

gem 'pg'

Expand Down Expand Up @@ -32,6 +31,7 @@ gem 'zeroclipboard-rails'

group :production do
gem 'rails_12factor'
gem 'rack-timeout', '~> 0.2.4'
end

group :development do
Expand Down
2 changes: 2 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,6 @@
config.exceptions_app = self.routes

config.time_zone = ENV['TIMEZONE'] || "Pacific Time (US & Canada)"

Rack::Timeout.timeout = 15
end
1 change: 0 additions & 1 deletion config/initializers/timeout.rb

This file was deleted.

0 comments on commit a8ebc99

Please sign in to comment.