Last active
December 24, 2015 09:09
-
-
Save robinboening/6775546 to your computer and use it in GitHub Desktop.
capistrano task to remove cached_copy from remote server. (This is useful if your remote git repository has changed)
This file contains 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
namespace :deploy do | |
desc "Removes the remote cache in order to deploy from a new remote repository" | |
task :delete_remote_cache, :except => { :no_release => true } do | |
run "cd #{shared_path}; rm -Rf cached-copy" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment