Sha256: be7dbb6652a19775c6090c1731936af3a7328648b24e140aa2fdebcbed43f7f4
Contents?: true
Size: 573 Bytes
Versions: 4
Compression:
Stored size: 573 Bytes
Contents
workers Integer(ENV['PUMA_WORKERS'] || 3) threads Integer(ENV['MIN_THREADS'] || 1), Integer(ENV['MAX_THREADS'] || 16) preload_app! rackup DefaultRackup port ENV['PORT'] || 3000 environment ENV['RACK_ENV'] || 'development' on_worker_boot do # worker specific setup ActiveSupport.on_load(:active_record) do config = ActiveRecord::Base.configurations[Rails.env] || Rails.application.config.database_configuration[Rails.env] config['pool'] = ENV['MAX_THREADS'] || 16 ActiveRecord::Base.establish_connection(config) end end
Version data entries
4 entries across 4 versions & 1 rubygems