On Thu, Jun 19, 2008 at 9:19 PM, Ryan Schmidt <
subversion-2008b_at_ryandesign.com> wrote:
>
> On Jun 19, 2008, at 9:33 PM, Waynn Lue wrote:
>
> I have two machines, A and B. B serves live code for my website, and A
>> hosts my repository. How can I use a post-commit hook to get code from A to
>> B every time someone checks in code? My current solution involves wget and
>> a php script that calls exec, which seems sub-optimal (and I'm having
>> trouble getting it to work).
>>
>
> I suppose that depends on the facilities available in the operating systems
> on the two machines.
>
> If these are two *nix machines (Linux, *BSD, Mac OS X, etc.) then you could
> "scp" or "rsync" the changes from A to B. Even easier, on B, check out a
> working copy of the part that you want to have auto-updated. Then, in the
> post-commit hook on A, run something like "ssh B 'svn update
> /path/to/workingcopy'".
>
>
Thanks so much for the help, I ended up doing just this, with public/private
keys.
Thanks again,
Waynn
Received on 2008-06-23 14:09:23 CEST