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

Re: Using subversion for web development

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Tue, 19 Aug 2008 19:09:24 -0500

On Aug 19, 2008, at 18:23, Robert Dailey wrote:
> On Tue, Aug 19, 2008 at 3:11 PM, Ryan Schmidt wrote:
>> On Aug 19, 2008, at 14:38, Robert Dailey wrote:
>
>>> I found this to get me started:
>>> http://subversion.tigris.org/faq.html#website-auto-update
>>>
>>> I'll post back if I have problems. Sorry for the trouble.
>>
>> Yes, that should answer the question about how to auto-update the
>> web server's working copy.
>
> Well reading it helped understand what I must do, but I do not have
> the know-how to write such a post-commit hook myself. This is a
> very common thing, it seems, so I'm sure someone else has already
> done the work. Is there a decent post-commit hook available for
> this already somewhere that I can use?

There's not much to it. Assuming you have already checked out a
working copy to /path/to/workingcopy, you probably don't need much
more than this in your post-commit hook:

#!/bin/sh

/usr/local/bin/svn update --non-interactive /path/to/workingcopy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-20 02:10:13 CEST

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.