iCreativeLabs blog

We LOVE our JOBS and we SHARE for you
Subscribe

Setting SVN on Mediatemple

By Julian Stahnk

Right now develop with many developer it’s not really hard, even it’s with different country/place. (Subversion) Svn make it more easier for checking what file that already change/update or what revision that has been do with the file.

Subversion (SVN) is a version control system initiated in 2000 by CollabNet Inc. It is used to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS).

Subversion (svn) repositories are supported on the (gs) Grid-Service platform. This is a few step that you can do for setting your SVN in your mediatemple hosting.

Step I : Setting Your Svn Repository

Before you using this below command you must login in your ssh box and your ssh must activated.

  1. Open your putty or any ssh application and login with your mediatemple username and password
  2. cd your folder data with this command
    cd data
  3. Use the svn admin command for creating the repository, and remember to using fs-type, this type for make sure svn database compatibilty
    svnadmin create –fs-type fsfs
  4. Create your folder layout for the project, usual use branches, tag, trunk
    mkdir layout
    mkdir/layout/branches
    mkdir/layout/tag
    mkdir/layout/trunk
  5. Import the layout to svn using this command below “#####” <== for finding the path you can use pre command
    svn import layout_project_directory file:///home/#####/data/ –message “Creating initial repo.”
  6. Listing your detail repository with this command
    svn list –verbose file:///home/#####/data/
  7. Setting the repo for multiple users

  8. cd /home/####/data
    chmod -R g+w repo_name

Step II : Setting Your Live Site

  1. Open your html directory
    cd home/#####/domain/domain_name/html/
  2. Creating new folder or you can use the parent directory, I assume we using new folder, svntemple
    mkdir svntemple
    cd svntemple
  3. Checkout the file from our repo
    svn co file:///home/#####/data//trunk .
  4. Setting directory permission on your live site
    find . -type d -print0 | xargs -0 chmod 775
  5. Setting file permission on your live site
    find . -type f -print0 | xargs -0 chmod 664

Step III : Setting Your Client Site

  1. Download your svn client, using tortoise or any svn client
  2. Make sure your username for svn users it’s have svn connection, you can setting this from your account setting
  3. Enter this on your svn url repository
    svn+ssh://username%25your-domain.com@your-domain.com/home/#####/

The setting done, hope this is can help us for using the svn in mediatemple


Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon


4 Comments

  1. Plester

    Don’t forget to use TortoiseSVN client if you’re using Windows.


  2. Plester

    nice tips.. i used mediatemple to host some my sites…


  3. Plester

    wow i think i must learn a lot. thanks for share. and i like your footer :D


  4. Plester

    Well, i think we should put this in our own wiki, right?


Plester

Leave Comment