public
Created

Unicorn config file

  • Download Gist
unicorn.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.