multistage.rb |
|
---|---|
Recap doesn’t yet provide any specific tools for multistage deployments
(deploying to different servers for The easiest way is to define your own task for each environment, and
declare servers and other configuration within those tasks. For example,
a require ‘recap/recipes/rails’ set :application, ‘blanche’ set :repository, ‘git@github.com:tomafro/blanche’ task :staging do server ‘staging.example.com’, :app end task :production do set :branch, ‘production’ server ‘production.example.com’, :app end The two environments deploy to different servers, and the production
environment deploys the To run tasks against each environment, simply call the environment
task first, i.e. |
|