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