Douglas Jarquin

Subversion on Media Temple

2007 October 28th
Comments

Using Subversion on the Media Temple Grid-Service is much easier than it seems. Actually, it is easier than my previous host.

Setup the repository

ssh serveradmin%domain.com@domain.com **OS X
Terminalserveradmin@domain.com **Windows
cd data
mkdir svn && cd svn
svnadmin create --fs-type fsfs reponame

Initial import

On your local machine.

mkdir reponame && cd reponame
mkdir trunk
mkdir tags
mkdir branches
svn import . svn+ssh://serveradmin%domain.com@s#####.gridserver.com/home/#####/data/svn/reponame/ -m "Initial import"

Checking out

Now that we have our subversion repository setup and our code checked in, we should check out a copy for development.

svn co svn+ssh://serveradmin%domain.com@s#####.gridserver.com/home/#####/data/svn/reponame/trunk reponame

Deployment

If you are going to deploy your website from a local subversion repository.

ssh serveradmin%domain.com@domain.com **OS X Terminalserveradmin@domain.com **Windows
cd domains
cd domain.com
mv html html-2
svn co file:///home/#####/data/svn/reponame/trunk html

That does it. Rinse and repeat as needed.

References

Filed under Tutorials



(required)



(required) (Won't be displayed)


Your Comment:

Photostream
Made by Elephant - We craft InterfacesBallpark: The better way to send invoices and estimates.7 Geeks, Inc. > LoginContact Manager, Web Based CRM, Address Book for Small Business: Highrise