Skip to content

Instantly share code, notes, and snippets.

@donnoman
Created December 13, 2010 20:10
Show Gist options
  • Select an option

  • Save donnoman/739524 to your computer and use it in GitHub Desktop.

Select an option

Save donnoman/739524 to your computer and use it in GitHub Desktop.
capistrano.rb
before "deploy:update_code", "deploy:clear_release_path"
namespace :deploy do
desc "Clear the release_path for a new checkout"
task :clear_release_path, :roles=>[:app] do
run "rm -rf #{release_path}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment