Sha256: ee52af9a649ff8debe4a2a0a82b828c2d5b514b49da337a8b52c22100426ff60
Contents?: true
Size: 485 Bytes
Versions: 2
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true listen "0.0.0.0:#{ENV.fetch('WEB_PORT', '8080')}", tcp_nopush: true pid '/app/tmp/pids/server.pid' preload_app ENV.key?('WEB_PRELOAD_APP') timeout ENV.fetch('WEB_TIMEOUT', 60).to_i worker_processes ENV.fetch('WEB_CONCURRENCY', 8).to_i before_fork do |_server, _worker| ActiveRecord::Base.connection.disconnect! if defined?(ActiveRecord) end after_fork do |_server, _worker| ActiveRecord::Base.establish_connection if defined?(ActiveRecord) end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
interactive_record-0.0.1alpha | config/unicorn.rb |
fiver-0.0alpha | config/unicorn.rb |