You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Gabor Szabo <ga...@perl.org.il> on 2004/10/17 11:59:50 UTC

Re: subversion for website source management

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