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

Version Path
potassium-5.1.4 lib/potassium/recipes/puma.rb
potassium-5.1.3 lib/potassium/recipes/puma.rb
potassium-5.1.2 lib/potassium/recipes/puma.rb
potassium-5.1.1 lib/potassium/recipes/puma.rb
potassium-3.0.0 lib/potassium/recipes/puma.rb