[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

post-commit hook script to update a live website

From: Thanos <thanos.a_at_fastwebnet.it>
Date: 2006-12-03 09:38:54 CET

Hello,

I have succesfully setup a SVN 1.4.0 server accessible by users through
https. It serves one repository for multiple projects with their own
structure (repository/projectname/trunk,branches,tags).

Now, I would like to be able to update a live website with current
committed revision. So, I have setup an apache2 server on the same
machine and pointed DocumentRoot to /var/www/svn

I have placed a very simple post-commit script I have found on another
thread on this mailing-list with the following content in
repositorypath/hooks:

#!/bin/sh
cd /var/www/svn || exit 1
svn update --quiet
exit 0

The script has correct owner/permissions (755, apache:apache), however
it doesn't work. After each commit /var/www/svn is still empty.

Can you help me in fixing this issue ?

I am new to SVN so any help is appreciated.

Thanks,
A.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Dec 3 09:40:21 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.