Skip to content

Instantly share code, notes, and snippets.

@joshmcarthur
Created May 30, 2013 23:17
Show Gist options
  • Save joshmcarthur/5682017 to your computer and use it in GitHub Desktop.
Save joshmcarthur/5682017 to your computer and use it in GitHub Desktop.
Sample Unicorn configuation file for talking to Nginx
working_directory "/home/inquest/inquest"
pid "/home/inquest/inquest/tmp/pids/unicorn.pid"
stderr_path "/home/inquest/inquest/log/unicorn.log"
stdout_path "/home/inquest/inquest/log/unicorn.log"
listen "/tmp/unicorn.inquest.sock"
worker_processes 5
timeout 30
preload_app true
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