Sha256: 2304b67a94bc7085edf29dd800d06852838142a0bf7e7a4d4a86fa3b5d709363
Contents?: true
Size: 823 Bytes
Versions: 2
Compression:
Stored size: 823 Bytes
Contents
rails_env = ENV['RACK_ENV'] || 'production' worker_processes 2 working_directory '/home/deploy/<%= @application_name %>/current' listen '/tmp/<%= @application_name %>.sock', :backlog => 2048 timeout 60 pid "/home/deploy/<%= @application_name %>/shared/pids/<%= @application_name %>.pid" preload_app true GC.respond_to?(:copy_on_write_friendly=) and GC.copy_on_write_friendly = true stderr_path '/home/deploy/<%= @application_name %>/shared/log/<%= @application_name %>.log' before_fork do |server, worker| ActiveRecord::Base.connection.disconnect! old_pid = "#{server.config[:pid]}.oldbin" if old_pid != server.pid begin Process.kill('QUIT', File.read(old_pid).to_i) rescue Errno::ENOENT, Errno::ESRCH end end end after_fork do |server, worker| ActiveRecord::Base.establish_connection end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pixelforce_cms-2.6 | lib/generators/pixelforce_cms/templates/unicorn.rb |
pixelforce_cms-2.5 | lib/generators/pixelforce_cms/templates/unicorn.rb |