How to Deploy with Capistrano after Repo URL changed?
We are using Capistrano to deploy our project and recently migrated the project repository from BitBucket to Github. I thought I could just simply change
set :repo_url in
config/deploy.rb, but that's not the case.
When I executed the deployment with Cap, I saw that the code in the log was still taken from the BitBucket repo, and all the changes made after the migration to GIhub were not included.
I searched the internet and found that I needed to ssh into the server to change the repo address, so I really made a fool of myself.
[core] repositoryformatversion = 0 filemode = true bare = true [remote "origin"] url = firstname.lastname@example.org:hegwin/my-project.git fetch = +refs/*:refs/* mirror = true
Change the url to the URL of the new repo and redeploy it locally.
Also, don't forget to add the Deploy Key again.