Sha256: d5c8cf4d40b3f00fdfdda7e35f4cb99bf31338f585666514ee9a4ca29378efb7

Contents?: true

Size: 460 Bytes

Versions: 4

Compression:

Stored size: 460 Bytes

Contents

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

pid '/app/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

4 entries across 4 versions & 1 rubygems

Version Path
orchestration-0.3.3 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.2 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.1 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.0 lib/orchestration/templates/unicorn.rb.erb