Ryan Schmidt wrote:
> On May 3, 2006, at 14:47, Duncan Booth wrote:
>
>> The FAQ has an answer for "I'm managing a website in my repository.
>> How can
>> I make the live site automatically update after every commit?", but
>> I want
>> to update a working copy on a system which isn't the subversion
>> server.
>
> How about a post-commit hook which does this:
>
> /usr/bin/ssh your.remote.host svn up /path/to/working/copy/on/remote/
> host
Actually, it probably isn't 'svn up', I'll probably just want to run a
shell script so that I can do other things like restarting programs if
necessary, but that doesn't matter. The problem is that on its own that
doesn't quite work.
The hook would be running as the apache user on the subversion server, so
the 'svn up' needs to be kicked off as a different user. I would rather not
trust the apache user from the svn server further than necessary, so I
would like some solution which allows a specific command to be run but not
others: maybe ssh+sudo, or should that be sudo+ssh?
Alternatively I use something like wget on a URL, which has different but
possibly simpler security issues.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 3 17:50:38 2006