Created
May 16, 2011 18:09
-
-
Save mrrooijen/974980 to your computer and use it in GitHub Desktop.
Unicorn sample configuration file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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