Skip to content

Instantly share code, notes, and snippets.

@D3xx73r
Created May 1, 2012 00:52
Show Gist options
  • Save D3xx73r/2564049 to your computer and use it in GitHub Desktop.
Save D3xx73r/2564049 to your computer and use it in GitHub Desktop.
Unicorn config file
# 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