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

Re: Updating a live website with a post-commit hook script

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-29 14:08:15 CEST

On Jun 29, 2006, at 13:37, Rainer Sokoll wrote:

> Bob Proulx wrote:
>> Graham Anderson wrote:
>>> 1) Is there an example script and tutorial on how to update a live
>>> web site with a post-commit hook script ?
>> Let's assume a subversion repository at /srv/svn/www and a web
>> document root at /srv/www. You could have a post-commit hook at
>> /srv/svn/www/hooks/post-commit with this content:
> Why not having the document root pointing to the subversion
> repository?
> As long as svn:mime-type is set properly, this should work?

a) if you're following best practices, you have a trunk and branches
and tags. So you'd always have to type "/trunk" into the URL to see
the web site. Fine for development but a bit ugly otherwise.

b) it only works if you have exclusively static files. As soon as you
have any SSI or PHP or ASP or JSP or anything else dynamic, it can't
work, and you need to do it the way described earlier in the thread,
with the working copy that gets updated.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 29 14:09:41 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.