Sha256: 73c56e1dcd315a9ba3763a5ee4ecaf5b108bfb2340f3e87e3291c25e524e0e64

Contents?: true

Size: 468 Bytes

Versions: 6

Compression:

Stored size: 468 Bytes

Contents

listen '0.0.0.0:8080', :tcp_nopush => true

pid '/application/tmp/pids/unicorn.pid'

preload_app ENV.fetch('UNICORN_PRELOAD_APP', '1') == '1'

timeout ENV.fetch('UNICORN_TIMEOUT', 60).to_i

worker_processes ENV.fetch('UNICORN_WORKER_PROCESSES', 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

6 entries across 6 versions & 1 rubygems

Version Path
orchestration-0.2.8 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.2.7 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.2.6 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.2.5 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.2.4 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.2.3 lib/orchestration/templates/unicorn.rb.erb