Accessibility

Table of Contents

Using Subversion with Dreamweaver CS4 – Part 3: Configuring Apache with Subversion support

Creating the repository

The first step in creating a repository is selecting a location on your local hard disk where the repository files are kept. This is different than the location where you will keep your local client copies of your code. Remember, in this scenario your machine will be both the client and the server.

On my machine I chose to put my repository in my home directory. The full path is:

 /usr/local/svn/repo 

For the directory name you can use "repo", "repositories", or any other descriptive name.

To get started, access the Mac (UNIX) command line by opening the Terminal application. Choose Application > Utilities > Terminal from the Mac menu bar.

In the Terminal application (see Figure 1), you'll see a prompt which looks something like the following:

Voltage:~ voltmer$

The command line prompt in Terminal.

Figure 1. The command line prompt in Terminal.

In the prompt, Voltage is the name of my machine and voltmer is my login.

I use the following commands to:

  • Make a directory where I will keep Subversion repositories.
  • Create the repository using svnadmin.
  • Verify the repository was created by listing the directory contents (see Figure 2).
Voltage:~ voltmer$ sudo mkdir /usr/local/svn
Voltage:~ voltmer$ sudo svnadmin create --fs-type fsfs
/usr/local/svn/repo
Voltage:~ voltmer$ ls /usr/local/svn/repo
README.txt        
dav         
format locks
Conf                           
db hooks

Create the Subversion repository via the
command line.

Figure 2. Create the Subversion repository via the command line.

Note: I precede each command with sudo to execute commands as the superuser. The first time you run the sudo command it will prompt you for the superuser password. It will cache the password for a while and not prompt you again until the cache times out.

That is it! I now have a repository where I can keep my code.