Migrating from subversion to git
Clone this wiki locally
Beyond doing the actual migration from subversion to git, there are a few steps you need to do to clue in moonshine to this fact.
First, you need to update your
config/moonshine.yml to specify your using git now, and to point at your git repository:
:scm: git :repository: email@example.com:yourusername/yourawesomeproject.git
With that in place, you need to get the appropriate version control packages installed. There’s a convenient capistrano task just for this:
… or if you are using a multistage setup:
cap staging vcs:install cap production vcs:install
In addition, the server will need to be able to clone your repository. There are two main ways:
- Setup ssh-agent and moonshine will magically bring your ssh keys with it when you deploy
- Create an ssh key for the server’s deploy user and setup it up as a deploy key on GitHub
With these done, you can git commit and push your changes of
config/moonshine.yml, and can then
cap deploy as normal.