Skip to content

Instantly share code, notes, and snippets.

@kuon
Created December 7, 2010 10:42
Show Gist options
  • Save kuon/731666 to your computer and use it in GitHub Desktop.
Save kuon/731666 to your computer and use it in GitHub Desktop.
socket_path = '/we/cms/shared/sockets/unicorn.sock'
pid_path = '/we/cms/shared/pids/unicorn.pid'
rails_env = ENV['RAILS_ENV'] || 'production'
worker_processes 3
preload_app true
timeout 75
listen socket_path, :backlog => 2048
pid pid_path
after_fork do |server, worker|
ActiveRecord::Base.establish_connection
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment