Skip to content

Instantly share code, notes, and snippets.

@ehlyzov
Created May 13, 2015 08:12
Show Gist options
  • Select an option

  • Save ehlyzov/299c252071473c54f849 to your computer and use it in GitHub Desktop.

Select an option

Save ehlyzov/299c252071473c54f849 to your computer and use it in GitHub Desktop.
Migrate from github to bitbucket. Task for updating repository url on all application instances. Capistrano 3.
task :fix_repo do
on roles(:app) do
config = repo_path.join('config')
execute :sed, '-i', '--', 's/github.com/bitbucket.org/g', config
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment