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

Re: Subversion, PHP and Web development

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-02-23 19:19:17 CET

On Mon, 2004-02-23 at 12:16, Federico Edelman wrote:

> I need resolve the 4th point. I think that I could use a "hooks-scripts"
> into "post-commit" stage that it runs a "svn checkout" into the Apache
> "DocumentRoot path" of the Web Site.
> Am I right or what's the way to resolve them?

Sure, that's a fine technique. I keep my own website in a subversion
repository, and my actual 'live' website (~sussman/public_html/) is just
a regular working copy. I have a post-commit hook which updates the
working copy.

A word of warning, though: many unixes won't let you 'chmod +s' a shell
script, which is necessary if I want the post-commit hook script to run
as user 'sussman'. So instead, my post-commit hook is a tiny C program
with +s :

#include <stdlib.h>
int main(int argc, const char *argv[])
{
  system("/usr/local/bin/svn update /home/sussman/public_html");
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 23 19:23:38 2004

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.