Quick and easy svn server for rails application
December 5, 2006
After doing some research and playing around, the easiest and best approach for an svn server, in my opinion, is svnserve:
http://svnbook.red-bean.com/en/1.0/ch06s03.html
It is quick and easy to setup and that is what I am all about. It allows access to multiple svn repositories and has an easy authentication setup. Once it is installed and your repository is created:
# svnadmin create ~user/source/project1
You can run svnserve one directory up and it will serve all repositories below it.
To configure authentication you modify two files: passwd and svnserve.conf, both in the /conf directory in the created repository. NOTE – when you modify these files the first entry has to have only one space from the begining of the line to the argument.
To start the server you just type:
# svnserve -d -r ~user/source
That is it. Time to move on to the next task.
How to recursively remove svn metadata
November 14, 2006
# find . -name .svn -print0 | xargs -0 rm -rf
will go thru a project and recursively remove the .svn metadata.