Created
February 28, 2013 20:32
-
-
Save mariusbutuc/5059868 to your computer and use it in GitHub Desktop.
`deploy:setup` is successful, yet `deploy:cold` / `deploy:check` fail
This file contains hidden or 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
require 'bundler/capistrano' | |
default_run_options[:pty] = true | |
set :application, 'example' | |
# repo | |
set :scm, :git | |
set :repository, "[email protected]:mariusbutuc/#{application}.git" | |
set :branch, 'master' | |
# deploy | |
set :user, 'vagrant' | |
set :deploy_to, "/home/#{user}/#{application}" | |
set :deploy_via, :remote_cache | |
set :ssh_options, { forward_agent: true } | |
server 'example.com', :web, :app, :db, primary: true | |
namespace :unicorn do | |
desc "Start unicorn for this application" | |
task :start do | |
run "cd #{current_path} && bundle exec unicorn -c /etc/unicorn/#{application}.conf.rb -D" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment