So now the Slice is setup and ready for our Ruby on Rails with Capistrano stack.
Let's get straight on and install subversion and set up a repository with SSH access.
Sounds familiar - again
it's true. There is a complete subversion section to the site.
What we're going to do is create a subversion repository in our home directory and configure it so we can access it via SSH.
This will make the connection nice and secure and we won't have to worry about passwords, etc as we have already set up SSH to accept passwordless logins via our private and public SSH keys (see the Slice setup article for more details).
Creating a repository
I'm not going to go through the details of setting up a repository but just show the commands. I'll link to the relevant subversion article if you want to know more (recommended reading).
So log into your Slice and install subversion:
sudo aptitude install subversion
Next create a repo directory and create a project:
mkdir /home/demo/repository ... svnadmin create /home/demo/repository/project1
Next thing is to sort out SSH access to the repository (keeping in mind we changed the SSH port during the setup phase).
Easiest thing here is to follow the subversion and SSH article.
Once you have created your custom 'tunnel' you should be able to check out project1, to your workstation, with something like this:
svn co svn+project1ssh://18.104.22.1680/home/demo/repository/project1
Using the custom 'svn+project1ssh' will ensure the correct username is used and the it connects to the correct SSH port.
Now you have a folder called project1 on your workstation ready for the next phase of the installation.
I also hope you are seeing the benefit of the command line: Once you get used to it, it's sleek and simple.
The next article will see the setup taking real shape when we install Ruby, rubygems, Nginx and sqlite3.