Sha256: 2df25c66784a016e183065df5067bfd0db8a39bb453683c2a75b5a409149ad27
Contents?: true
Size: 449 Bytes
Versions: 5
Compression:
Stored size: 449 Bytes
Contents
class Recipes::Puma < Rails::AppBuilder def create gather_gems(:production) do gather_gem 'rack-timeout' 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 end end
Version data entries
5 entries across 5 versions & 1 rubygems