Sha256: 4c0c4df95cfcd14f6cb4e04f664ddf5219da7e3533c6535e003b564c50476b00

Contents?: true

Size: 658 Bytes

Versions: 89

Compression:

Stored size: 658 Bytes

Contents

worker_processes Integer(ENV['WEB_CONCURRENCY'] || 3)
timeout 15
preload_app true

# rubocop:disable Output
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) && 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) && ActiveRecord::Base.establish_connection
end
# rubocop:enable Output

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
smalruby-editor-0.3.5-x86-mingw32 config/unicorn.rb
smalruby-editor-0.3.5 config/unicorn.rb
smalruby-editor-0.3.4-x86-mingw32 config/unicorn.rb
smalruby-editor-0.3.4 config/unicorn.rb
smalruby-editor-0.3.3-x86-mingw32 config/unicorn.rb
smalruby-editor-0.3.3 config/unicorn.rb
smalruby-editor-0.3.2-x86-mingw32 config/unicorn.rb
smalruby-editor-0.3.2 config/unicorn.rb
smalruby-editor-0.3.1-x86-mingw32 config/unicorn.rb
smalruby-editor-0.3.1 config/unicorn.rb
smalruby-editor-0.3.0-x86-mingw32 config/unicorn.rb
smalruby-editor-0.3.0 config/unicorn.rb
smalruby-editor-0.2.7-x86-mingw32 config/unicorn.rb
smalruby-editor-0.2.7 config/unicorn.rb
smalruby-editor-0.2.6-x86-mingw32 config/unicorn.rb
smalruby-editor-0.2.6 config/unicorn.rb
smalruby-editor-0.2.5-x86-mingw32 config/unicorn.rb
smalruby-editor-0.2.5 config/unicorn.rb
smalruby-editor-0.2.4-x86-mingw32 config/unicorn.rb
smalruby-editor-0.2.4 config/unicorn.rb