From c16a55a644ff3eeabcc45d54210fff8b1ac6bc1d Mon Sep 17 00:00:00 2001 From: "Christian G. Warden" Date: Thu, 16 Dec 2010 22:00:10 -0800 Subject: [PATCH] speed up deployments and reduce disk usage by hardlinking to previous release where possible --- .../recipes/deploy/strategy/rsync_with_remote_cache.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/capistrano/recipes/deploy/strategy/rsync_with_remote_cache.rb b/lib/capistrano/recipes/deploy/strategy/rsync_with_remote_cache.rb index ad44c22..6779c30 100644 --- a/lib/capistrano/recipes/deploy/strategy/rsync_with_remote_cache.rb +++ b/lib/capistrano/recipes/deploy/strategy/rsync_with_remote_cache.rb @@ -26,7 +26,6 @@ def self.default_attribute(attribute, default_value) def deploy! update_local_cache update_remote_cache - copy_remote_cache end def update_local_cache @@ -44,7 +43,7 @@ def copy_remote_cache end def rsync_command_for(server) - "rsync #{rsync_options} --rsh='ssh -p #{ssh_port(server)}' #{local_cache_path}/ #{rsync_host(server)}:#{repository_cache_path}/" + "rsync #{rsync_options} --rsh='ssh -p #{ssh_port(server)}' --link-dest=#{current_path}/ #{local_cache_path}/ #{rsync_host(server)}:#{configuration[:release_path]}/" end def mark_local_cache