Sha256: a82bc3e708353c64754bfc3fd924cb6b38873e7cbcee6cabac0ed686cf48d64f
Contents?: true
Size: 606 Bytes
Versions: 16
Compression:
Stored size: 606 Bytes
Contents
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3) timeout 6000000 preload_app true before_fork do |server, worker| Signal.trap 'TERM' do puts 'Unicorn master intercepting TERM and sending myself QUIT instead' Process.kill 'QUIT', Process.pid end defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.disconnect! end after_fork do |server, worker| Signal.trap 'TERM' do puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT' end defined?(ActiveRecord::Base) and ActiveRecord::Base.establish_connection end
Version data entries
16 entries across 16 versions & 1 rubygems