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

Re: Commit to repository and send changes somewhere else

From: Ximon Eighteen <ximon.eighteen_at_int.greenpeace.org>
Date: 2005-09-26 11:02:37 CEST

> Is this something that can be done using subversion or by the use of a hook script. My initial research suggests a hook script but all samples, references seem to refer to only sending out an email and not anything else.

I do this using a hook script and my content on the webserver is a
working copy checkout of the content in the subversion repository.

If the webserver is local to the subversion server (e.g. I use
Subversion to update the non-svn content server by my subversion powered
apache instance) then I do:-

   cd /path/to/html/content/working/copy
   svn update

If however your webserver is another machine you could use SSH to send a
remote update command, e.g.

   ssh user@webserver "cd /path/to/html/working/copy ; svn update"

You'll probably want to setup automatic login (via .ssh/authorized_keys)
for ssh and use a limited privilege user just for the purpose. An
alternate approach is to use a timed svn update on the webserver in say
a cron job.

Ximon

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 26 11:07:07 2005

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.