Skip to content

Instantly share code, notes, and snippets.

@talnetd
Created May 18, 2014 10:11
Show Gist options
  • Save talnetd/02f29d71ffb521165a50 to your computer and use it in GitHub Desktop.
Save talnetd/02f29d71ffb521165a50 to your computer and use it in GitHub Desktop.
root = "/vagrant/current"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
stdout_path "#{root}/log/unicorn.log"
listen "/tmp/unicorn.projectname.sock"
worker_processes 2
timeout 30
# Force the bundler gemfile environment variable to
# reference the capistrano "current" symlink
before_exec do |_|
ENV["BUNDLE_GEMFILE"] = File.join(root, 'Gemfile')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment