Sha256: 93a25be39f7042cd1cad6487166804bbb9ac59b5b3aeba396fc4129f224bf00e
Contents?: true
Size: 613 Bytes
Versions: 36
Compression:
Stored size: 613 Bytes
Contents
worker_processes 4 # amount of unicorn workers to spin up timeout 30 # restarts workers that hang for 30 seconds preload_app true # Load app in parent, COW in children. before_fork do |server, worker| # the following is highly recomended for Rails + "preload_app true" # as there's no need for the master process to hold a connection defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.disconnect! end after_fork do |server, worker| # the following is *required* for Rails + "preload_app true", defined?(ActiveRecord::Base) and ActiveRecord::Base.establish_connection end
Version data entries
36 entries across 36 versions & 2 rubygems