Subversion over SSH
The first step is to ssh to your PLANET ARGON hosting account.
$ ssh -l vu1969 xenon.planetargon.com
After you are connected you will want to create a new directory to store all of your exciting new project repositories in. I’m going to call mine svn to keep it short & sweet.
$ mkdir ~/svn
Great! We’re almost half way there… :-)
Next we’re going to use the svnadmin program which if you type svnadmin help displays a bunch of useful information… which you might find helpful. We’re going to call the following command to create a new subversion repository. The name of my subversion repository is going to be called nigel… after my dog who… is quite a project.
$ svnadmin create ~/svn/nigel
Okay… while running that command we moved ahead another 20% through this process. Now… the final step… open up another terminal on your development workstation. This is where it gets tricky.
You will want to change the directory to the root path of the project that you wish to keep in your new repository. (on your personal workstation)
$ cd /home/rrussell/projects/nigel
Now… you will import your project into your new Subversion repository.
$ svn import . svn+ssh://vu1069@xenon.planetargon.com/home/vu1069/svn/nigel -m "Initial import of project"
vu1069@xenon.planetargon.com's password:
Adding photo.jpg
Adding leash.txt
Adding collar.rb
Adding dog_bone.rb
Committed revision 1.
Hooray! We now have a Subversion? repository to work with. :-)
...that’s 100%!
george53 – I had a bit of a problem initially. One of my rails app directories didn’t have the proper permissions set, so the import failed. Make sure that your permissions are set to read/write to all of the directories in your app directory.
dougpfeffer – I had an issue with the suggested import path above. This worked for me:svn+ssh://vu****@positron.planetargon.com/var/www/virtual/my_username/svn/project, with my_username being the VHCS2 login, not the SSH login (vu**).