Created
January 6, 2013 16:18
-
-
Save rkjha/4468248 to your computer and use it in GitHub Desktop.
unicorn.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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