Skip to content

Instantly share code, notes, and snippets.

@d6rkaiz
Created December 13, 2010 16:52
Show Gist options
  • Save d6rkaiz/739217 to your computer and use it in GitHub Desktop.
Save d6rkaiz/739217 to your computer and use it in GitHub Desktop.
unicorn.conf
worker_processes 2
working_directory "/var/www/default"
timeout 30
listen "/tmp/unicorn.socket", :backlog => 64
pid "logs/unicorn.pid"
stderr_path "logs/unicorn.log"
stdout_path "logs/unicorn.log"
after_fork do |server,worker|
worker.user('www-data', 'www-data') if Process.euid == 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment