Skip to content

Instantly share code, notes, and snippets.

@rubysolo
Created February 19, 2010 16:59
Show Gist options
  • Select an option

  • Save rubysolo/308901 to your computer and use it in GitHub Desktop.

Select an option

Save rubysolo/308901 to your computer and use it in GitHub Desktop.
# common stuff
set :application, "app-name"
set :scm, :git
set :deploy_via, :remote_cache
set :git_enable_submodules, 1
set :repository, "git@host:repo.git"
# ...etc...
## standard single target setup:
set :deploy_to, "/var/www/myapp"
role :app, "myslice.isp.com"
# ...etc...
## multiple target setup:
# replace single target stuff with env-specific blocks:
task :production do
set :deploy_to, "/var/www/myapp"
role :app, "myslice-prod.isp.com"
# ...etc...
end
task :staging do
set :deploy_to, "/var/www/myapp"
role :app, "myslice-stage.isp.com"
# ...etc...
end
# execute with "cap ENV deploy", where ENV is one of your defined environments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment