lib/potassium/recipes/puma.rb in potassium-5.1.4 vs lib/potassium/recipes/puma.rb in potassium-5.2.0
- old
+ new
@@ -5,13 +5,8 @@
end
copy_file '../assets/config/puma.rb', 'config/puma.rb', force: true
# Configure rack-timout
- rack_timeout_config =
- <<-RUBY.gsub(/^ {9}/, '')
- Rack::Timeout.timeout = (ENV["RACK_TIMEOUT"] || 10).to_i
- RUBY
-
- append_file "config/environments/production.rb", rack_timeout_config
+ application "Rack::Timeout.timeout = (ENV[\"RACK_TIMEOUT\"] || 10).to_i", env: "production"
end
end