Skip to content

Instantly share code, notes, and snippets.

@gnumarcelo
Forked from rkjha/unicorn.rb
Last active August 29, 2015 14:07
Show Gist options
  • Save gnumarcelo/c09654d88929efeee5af to your computer and use it in GitHub Desktop.
Save gnumarcelo/c09654d88929efeee5af to your computer and use it in GitHub Desktop.
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