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

Re: subversion for website source management

From: Gabor Szabo <gabor_at_perl.org.il>
Date: 2004-10-17 13:59:50 CEST

On Sat, 16 Oct 2004, dave wrote:

> Hi,
> Was wondering if you could give me more information on how you use
> subversion to manage your site? I'm atempting to do an identical task with
> subversion and two or three web sites plus some system configuration files.
> How did you get apache and subversion going and do you have multiple
> repositories, perdirectory access or apache .htaccess, any other information
> also would be helpful.
> Thanks.
> Dave.

Hi Dave,

I hope you don't mind that I get back to the mailing list as I like to
have my words archived when I say clever things....
... and I like to be corrected by a bunch of clever people when I make
mistakes :)

Our site has its own repository, it makes it easier to run
svn update on the server every time you check in. It would not be a big
deal to make it part of a bigger repository as svn up will only
bring the files that were actually changed.

Once we setup the repository I went to the web server (which is
the same machine as the repository) selected a nice looking directory
somewhere in /var/www/mysite and run

svn co path-to-the-repository

I also added a post-commit hook to the repository the following lines:

(cd /var/www/mysite; /usr/local/bin/svn update)
(cd /var/www/mysite/source; /usr/bin/perl update_site.pl)

The first one updates the local repository while the second one generates
our static pages.

The web server configuration has nothing special (except of course the
fact that it has a subversion repository in some other place).

We also have the following entry:

<LocationMatch /.svn>
Deny from all
</LocationMatch>

though actually we don't really need it as the pages generated by the
update_site.pl script are actually placed in a directory outside the
workspace in a directory which has no .svn subdirectories.

(I hope at least :)

I hope this helps and feel free to ask more questions.

Gabor
http://www.szabgab.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 17 14:00:16 2004

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.