Sha256: 27ce46157314d67243fe5354bfc69f35c409cfc163626430c28ac100abd1e910

Contents?: true

Size: 454 Bytes

Versions: 68

Compression:

Stored size: 454 Bytes

Contents

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

68 entries across 68 versions & 1 rubygems

Version Path
orchestration-0.7.15 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.6.16 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.14 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.13 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.6.15 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.12 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.6.14 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.11 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.6.13 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.10 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.9 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.6.12 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.8 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.6.11 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.6 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.6.10 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.5 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.7.4 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.6.9 lib/orchestration/templates/unicorn.rb.erb
orchestration-0.6.8 lib/orchestration/templates/unicorn.rb.erb