Skip to content

Instantly share code, notes, and snippets.

@rynop
Created December 28, 2010 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rynop/757248 to your computer and use it in GitHub Desktop.
Save rynop/757248 to your computer and use it in GitHub Desktop.
set :application, "XXX"
role :app, "XXX.compute-1.internal", :primary => true
role :app, "XXX.compute-1.internal"
ssh_options[:keys] = "#{ENV['HOME']}/.ssh/dasdeploy_rsa"
ssh_options[:verbose] = :debug
ssh_options[:auth_methods] = "publickey"
ssh_options[:forward_agent] = true
ssh_options[:config]=false
default_run_options[:pty] = true
#thanks: http://www.pgrs.net/2008/10/29/deploying-trunk-or-tags-with-capistrano
set :repository_root, "svn+ssh://dasdeploy@XXX.com/home/svn/repos/XXX"
set(:tag) { Capistrano::CLI.ui.ask("Tag to deploy (or type 'trunk' to deploy from trunk): ") }
set(:repository) { (tag == "trunk") ? "#{repository_root}/trunk" : "#{repository_root}/tags/#{tag}" }
set :scm, :subversion
set :user, "dasdeploy"
set :use_sudo, false
set :keep_releases, 5
set :deploy_via, :remote_cache
set :copy_strategy, :export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment