Created
May 1, 2012 00:52
-
-
Save D3xx73r/2564049 to your computer and use it in GitHub Desktop.
Unicorn config file
This file contains hidden or 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
# Define your root directory | |
root = "/home/deployer/apps/gifroll/current" | |
# Define worker directory for Unicorn | |
working_directory root | |
# Location of PID file | |
pid "#{root}/tmp/pids/unicorn.pid" | |
# Define Log paths | |
stderr_path "#{root}/log/unicorn.log" | |
stdout_path "#{root}/log/unicorn.log" | |
# Listen on a UNIX data socket | |
listen "/tmp/unicorn.gifroll.sock" | |
# 16 worker processes for production environment | |
worker_processes 16 | |
# Load rails before forking workers for better worker spawn time | |
preload_app true | |
# Restart workes hangin' out for more than 240 secs | |
timeout 240 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment