Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Created May 16, 2011 18:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrrooijen/974980 to your computer and use it in GitHub Desktop.
Save mrrooijen/974980 to your computer and use it in GitHub Desktop.
Unicorn sample configuration file
# encoding: utf-8
# Spawn 3 workers
worker_processes ENV['UNICORN_SERVERS'].nil? ? 3 : ENV['UNICORN_SERVERS'].to_i
# Restart any workers that haven't responded in 30 seconds
timeout 30
# Listen on a Unix data socket
listen File.join(ENV['HOME'], 'tmp', 'sockets', 'rails', 'unicorn.sock'), :backlog => 2048
# Create the pid file
pid File.join(ENV['HOME'], 'tmp', 'pids', 'rails', 'unicorn.pid')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment