Skip to content

Instantly share code, notes, and snippets.

@HansHauge
Created March 18, 2015 18:45
Show Gist options
  • Save HansHauge/42af3fabd8970d60756e to your computer and use it in GitHub Desktop.
Save HansHauge/42af3fabd8970d60756e to your computer and use it in GitHub Desktop.
config/unicorn.rb
# If you have a very small app you may be able to
# increase this, but in general 3 workers seems to
# work best
worker_processes 3
# Load your app into the master before forking
# workers for super-fast worker spawn times
preload_app true
# Immediately restart any workers that
# haven't responded within 90 seconds
timeout 90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment