Sha256: c5805d782a6f78a6c3f5a893a80fc69cdb43fcc3ad0b760b3e9eb375cba9ab07

Contents?: true

Size: 440 Bytes

Versions: 5

Compression:

Stored size: 440 Bytes

Contents

# config/unicorn.rb
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 15
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
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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
venice-chr-0.1.5 config/unicorn.rb
venice-chr-0.1.4 config/unicorn.rb
venice-chr-0.1.3 config/unicorn.rb
venice-chr-0.1.2 config/unicorn.rb
venice-chr-0.1.1 config/unicorn.rb