-
Notifications
You must be signed in to change notification settings - Fork 69
Migrating from subversion to git
technicalpickles edited this page Aug 19, 2010
·
3 revisions
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 protected]: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:
cap vcs:install
… 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.