I recently changed a repository url of a project. However, I found out that editing your project's capistrano repo_url isn't enough. This usually was easy with Capistrano 2.
set :deploy_via, :remote_cache doesn't work anymore with Capistrano 3.
shared/cached-copy doesn't exist anymore as well and has been replaced with
/data/appname with your actual deployment directory).
It was actually quite annoying since I can't find a decent way to fix the besides redoing the mirror (deleting /data/appname/repo?) or by manually updating the config. I went ahead with editing the config.
So, to get your instances updated...
[core] repositoryformatversion = 0 filemode = true bare = true [remote "origin"] fetch = +refs/*:refs/* mirror = true url = email@example.com:username/oldrepo.git
[core] repositoryformatversion = 0 filemode = true bare = true [remote "origin"] fetch = +refs/*:refs/* mirror = true url = firstname.lastname@example.org:username/newrepo.git
cap deploy then all will be fine again.
Follow me on Twitter as @jasontorres