Created
February 19, 2010 16:59
-
-
Save rubysolo/308901 to your computer and use it in GitHub Desktop.
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
| # 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