Skip to content

Instantly share code, notes, and snippets.

@saberma
saberma / unicorn_restart.sh
Created April 21, 2010 07:57 — forked from defunkt/gist:206253
unicorn config
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
# 16 workers and 1 master
worker_processes (rails_env == 'production' ? 16 : 4)
# Load rails+github.git into the master before forking workers
# for super-fast worker spawn times
preload_app true