Aug 15, 2011
tom

Subversion post commit hook checkout to website document root

Question

We have Subversion running on our Debian development server.

We have setup a post-commit hook to checkout the contents of the repository to /var/www/ourwebsite

There are about 2GB worth of files and each checkout takes about 10-15 minutes.

If we are simply changing a couple lines of code, it will continually keep copying files over and over, I dont think this is the right approach.

Any help?

Answer

Use svn update instead of svn checkout

Make sure that you have Apache setup to ignore svn files

Related posts:

  1. Subversion post commit hook checkout to website document root
  2. Subversion multi checkout post-commit hook?
  3. How do I restrict a post-commit hook?
  4. SVN trac post-commit hooks work when using checkout from real path, not via symlink or rebased path
  5. gitolite post commit hook to update redmine’s repository

Leave a comment