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

Re: auto commit on server

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-07-09 11:44:21 CEST

On Jul 9, 2007, at 04:29, Benedetto Bernardini wrote:

> 2007/7/8, Karl Fogel:
>
> > Benedetto Bernardini wrote:
> >
> >> I have a linux machine with the repository of subversion, and a
> >> windows machine that is the test-server.
> >>
> >> I wanna, on commit in the repository, an auto-update on server.
> >> Is it possible?
>>
>> You might also be looking for this:
>>
>> http://subversion.tigris.org/faq.html#website-auto-update
>
> But repository and server are on two different machine.
> thx!!!;)

Ok. Then you will need to find some way, in the post-commit hook on
the Subversion server, to notify the web server that it needs to get
new content from the repository.

If both servers were running a UNIX-like operating system, this would
be very easy to do. Your post-commit hook on the repo server would
simply call "/usr/bin/ssh someuser@webserver /usr/bin/svn update /
path/to/workingcopy" which would log in to the web server with ssh,
run the svn update command on its working copy, and log out.

If your web server is running Windows, you'll need to either run
cygwin on it, so that you get all the nice UNIX utilities and can use
ssh as above, or find some other way to notify the Windows machine
that it should do an svn update of its working copy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 9 11:55:04 2007

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.