Sha256: ebe91b46ef6a461cdea6258657fdf0c7f0b340655d4ad86f9fbdf5dc2118609d

Contents?: true

Size: 457 Bytes

Versions: 14

Compression:

Stored size: 457 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

14 entries across 14 versions & 1 rubygems

Version Path
orchestration-0.3.17 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.16 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.15 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.14 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.13 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.12 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.11 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.10 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.9 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.8 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.7 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.6 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.5 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.3.4 lib/orchestration/templates/unicorn.rb.erb