This is a 0.1 deploy method I have tested this and we are using this version in production BUT its is not stupid proof… In the ./config/deploy.rb # Setup the repository with the TAG variable () tag = (ENV[”TAG”] || “”) set :repository, “http://svn.mypostit.local/#{application}/tags/#{tag}” set :repository, “http://svn.mypostit.local/#{application}/trunk” if tag.empty? Now you can deploy with: [deployer@heimdull [...]
Posts Tagged ‘capistrano’
27 Sep
Deploying with capistrano to servers behind a firewall
First lets install the rsync_with_remote_cache gem: Check-out from source svn co http://svn.extendviget.com/lab/trunk/gems/capistrano_rsync_with_remote_cache Add patch so we will deploy to all roles not just the :app role(this will ensure that migration will work) vi lib/capistrano/recipes/deploy/strategy/rsync_with_remote_cache.rb change this: # Step 2: Update the remote cache. logger.trace “copying local cache to remote” find_servers(:roles => :app, :except => { [...]
1 Jul
Capistrano with multiple environments
A few months ago I started poking around with Capistrano and now cap is all I use everywhere… This thing rocks. The first problem I had was multiple environments, we have Production, Staging, performance, integration, qa1,qa2,stability1 and stability2 ?!?! dude can you say excessive.. anyways heres how I managed around this: This goes in your [...]
Recent Comments