Skip to content

Instantly share code, notes, and snippets.

@frank-who
Created November 27, 2011 08:59
Show Gist options
  • Save frank-who/1397267 to your computer and use it in GitHub Desktop.
Save frank-who/1397267 to your computer and use it in GitHub Desktop.
Basic Unicorn Setup
# unicorn_rails -c config/unicorn.rb -D
app_name = "dojo"
app_root = "/Users/frank/Projects/rails/#{app_name}"
working_directory app_root
pid "/tmp/unicorn.#{app_name}.pid"
stderr_path "#{app_root}/log/unicorn.log"
stdout_path "#{app_root}/log/unicorn.log"
listen "/tmp/unicorn.#{app_name}.sock"
worker_processes 2
timeout 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment