Subversion on Media Temple

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

1 Notes

  1. douglasjarquin posted this

Comments