Skip to content

Instantly share code, notes, and snippets.

@robinboening
Last active December 24, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinboening/6775546 to your computer and use it in GitHub Desktop.
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)
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