Redmine SVN set up.

For those of you that do not know, “Redmine is a flexible project management web application. Written using the Ruby on Rails framework, it is cross-platform and cross-database.

Redmine is open source and released under the terms of the GNU General Public License v2 (GPL).”

We are using the TurnkeyLinux version of Redmine which allows us to run a pre-built Virtual Machine image.

It works pretty good right out the box. One of the nice features is being able to run Subversion (SVN). Allowing you to version control, archive and back up your code.

To tie a project into SVN you need to manually set a few images in the web interface.

Log into Redmine via web interface

  1. Create/edit a project
  2. Go to “Repository” tab
    • Select SCM as Subversion
    • file:///srv/repos/svn/{PROJECT NAME}
    • Create a Login
    • Create a Password
  3. Click Save

Next you will need to log into Redmine server via SSH and complete the following steps.

  1. Create a folder to store the new repository:

    mkdir /srv/repos/svn/{PROJECT NAME}
  2. Create the repository.

    svnadmin create /srv/repos/svn/{PROJECT NAME}
  3. If need to you can verify the repository with the following line of code.

    svnadmin verify /srv/repos/svn/{PROJECT NAME}
  4. Edit the configuration file for the repository.

    nano /srv/repos/svn/{PROJECT NAME}/conf/svnserve.conf
  5. Unhide the following items:

    anon-access = read
    auth-access = write
    password-db = passwd
  6. Save file
  7. Edit the password file to mamange user names and passwords

    nano /srv/repos/svn/{PROJECT NAME}/conf/passwd
  8. When finished adding the user accounts save the file and exit the editor
  9. You may need to restart service/server

    touch /etc/init.d/svnserve

Finally connect to the Repository via tortoiseSVN

  1. Use tortoiseSVN “repo browser” to connect to svn://{IP ADDRESS}/svn/{PROJECT NAME}
  2. Add the following folders:

    • branches
    • trunk
    • tags

  3. Set folder on development machine.