Ok I uploaded http://groups.google.com/group/capistrano/web/
local_subversion_with_rsync_1.tar.gz

This is basically the same thing as before but adds rsync as an option
for deployment to the remote servers.

There is a unit test that works, but I have not extensively tested the
rsync option in all environments, so feedback is welcome.

Basically to use this with rsync, add this to the deploy.rb...
(presuming you put the file in lib/tasks)

  require 'lib/tasks/local_subversion_rsync.rb'
  set :scm, Capistrano::SCM::LocalSubversionRsync

  set :repository_is_not_reachable_from_remote, true
  set :use_rsync, true
  set :local_rsync_cache, "/home/user/projects/aproject/cache"
  set :remote_rsync_cache, "/var/www/webapp/cache"
  set :rsync_username, "ausername"
  set :rsync_excludes, ["*.bak", "*.log"]

The rsync_username and rsync_excludes are optional.

Thanks to Luke in a previous post here for the rsync recipe.


On Feb 15, 1:27 pm, Jon Garvin <[EMAIL PROTECTED]> wrote:
> wolfmanjm wrote:
> > Oh OK,
>
> > my understanding is what Jamis mentioned is slated for a totally new
> > release of capistrano
> > which has not happened yet.
>
> Ohh, got it. Thanks.  I'll probably wait for that than.


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to