Sha256: bb6fe0d5bcb5d48447cf376ca1f73b9df86245dec8474e736a101692f6346be8
Contents?: true
Size: 488 Bytes
Versions: 51
Compression:
Stored size: 488 Bytes
Contents
environment ENV.fetch('RAILS_ENV') { 'development' } port ENV.fetch('WEB_PORT') { 3000 } workers ENV.fetch('WEB_CONCURRENCY') { 4 } threads_count = ENV.fetch('RAILS_MAX_THREADS') { 8 } pidfile './tmp/pids/server.pid' threads threads_count, threads_count preload_app! if ENV.key?('WEB_PRELOAD_APP') before_fork do ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord) end on_worker_boot do ActiveRecord::Base.establish_connection if defined?(ActiveRecord) end
Version data entries
51 entries across 51 versions & 1 rubygems