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

Re: After svn up

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-01-10 01:30:17 CET

On Jan 9, 2006, at 22:50, Albert Shih wrote:

> How can I run automaticly a script after svn up ?
>
> Let me explain, I've many (well > 2) commiter for a web site.
> Each commiter commit from different computer. After that he launch
> on the
> web-server the svn up command.
>
> But I want after the svn up command there launch some script (like
> chown -R www:www *)

If the web server is the same machine that the Subversion repository
is on, it's easy: you write a post-commit hook to update the web
server's working copy.

If the web server is a different machine, then it's only slightly
more complicated: your post-commit hook on the repository server
needs to tell the web server to update its working copy, for example
by invoking a command via ssh.

Hook scripts are described in the book:

http://svnbook.red-bean.com/en/1.1/ch05s02.html#svn-ch-5-sect-2.1

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 10 01:50:02 2006

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.