Sha256: 7ab8ad5bef8474aa81f50eb4e6f34d04b314be90a28b6e48a4154df0dac0091e
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
require "rails/generators" module Suspenders module Production class TimeoutGenerator < Rails::Generators::Base def add_gem gem "rack-timeout", group: :production end def configure_rack_timeout append_file "config/environments/production.rb", rack_timeout_config end private def rack_timeout_config %{Rack::Timeout.timeout = ENV.fetch("RACK_TIMEOUT", 10).to_i} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
suspenders-1.47.0 | lib/suspenders/generators/production/timeout_generator.rb |