[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 15:02:00 CEST

On Jun 29, 2006, at 14:14, Rainer Sokoll wrote:

> Ryan Schmidt wrote:
>>> 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.
> Then point the webroot to <repos>/trunk/

That's not possible. Imagine a repo containing trunk, branches and
tags at the top level. You want to serve this via Apache. Your Apache
conf has to look something like this:

<VirtualHost *:80>
        ServerName some.hostname
        <Location />
                DAV svn
                SVNPath /path/to/the/repo

And to access the trunk, you have to visit the URL http://
some.hostname/trunk. You cannot point SVNPath at /path/to/the/repo/
trunk because "trunk" is not a repository; it is a path within the

>> 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,
> Sorry, I don't see the point. Can you be more verbose?

If your repository contains PHP files, for example, and you want to
see the web site and have the PHP code evaluated, then the above
VirtualHost is not sufficient, because Subversion will show the PHP
source code, and will not pass it back to the Apache PHP module to
have it interpreted.

No, there really are reasons why the FAQ says you need to check out a
working copy and point Apache at that: because that's what works.

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