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

[mildly OT]SVN-Notify-Mirror-0.01_05.tar.gz

From: John Peacock <jpeacock_at_rowman.com>
Date: 2005-11-17 16:24:41 CET

I'd love to get some feedback on this module prior to making it the 0.02
release:

        <http://tinyurl.com/98fz7>

I'm especially interested in suggestions for improving the documentation
of the new SSH feature.

The important part of the description is this:

> Keep a directory in sync with a portion of a Subversion repository.
> Typically used to keep a development web server in sync with the
> changes made to the repository. This directory can either be on the
> same box as the repository itself, or it can be remote (via SSH
> connection).

Here is an example post_commit file:

> #!/usr/bin/perl -MSVN::Notify::Config=$0
> --- #YAML:1.0
> '':
> PATH: "/usr/bin:/usr/local/bin"
> 'path/in/repository':
> handler: Mirror
> to: "/path/to/www/htdocs"
> 'some/other/path/in/repository':
> handler: Mirror
> to: "/path/to/remote/www/htdocs"
> ssh_host: "remote_host"
> ssh_user: "remote_user"
> ssh_tunnel: "10.0.0.2"
> ssh_identity: "/home/user/.ssh/id_rsa"

which will update the local WC "/path/to/www/htdocs" when any change it
committed to "path/in/repository" and will update the WC in
"/path/to/remote/www/htdocs" on the box remote_host when something
changes in the "some/other/path/in/repository" path.

What I can do with this is to have the test web server (local to the
repository) kept in sync with project1/trunk and have the production web
server (in a DMZ) kept in sync with project1/branches/production. I'm
trying to think of a clever way to have the production server switch to
the latest tag automatically (since that would be cleaner than having to
merge to the branches/production all the time).

TIA

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 17 16:29:37 2005

This is an archived mail posted to the Subversion Dev mailing list.