Skip to content

Instantly share code, notes, and snippets.

@rkjha
Created January 6, 2013 16:18
Show Gist options
  • Save rkjha/4468248 to your computer and use it in GitHub Desktop.
Save rkjha/4468248 to your computer and use it in GitHub Desktop.
unicorn.rb
root = "/home/mrhuman/apps/YOUR_APP_NAME/current"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
stdout_path "#{root}/log/unicorn.log"
# change the YOUR_APP_NAME to your application name
listen "/tmp/unicorn.YOUR_APP_NAME.sock"
worker_processes 2
timeout 30
before_exec do |server|
ENV['BUNDLE_GEMFILE'] = '/mnt/Hipstaweb-<%= RUBBER_ENV %>/current/Gemfile'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment