[Baypiggies] Moving forward (was meetup ...)

Paul McNett p at ulmcnett.com
Sat Apr 29 01:54:29 CEST 2006


Danny Yoo wrote:
> The only other niggling issue is getting the baypiggies.net web site to 
> automatically deploy new updates whenever a commit goes through.  We 
> haven't set up a crontab to do this yet, but I'm sure this isn't rocket 
> science... *grin*

Is the subversion repository on the same machine as the webserver? If 
so, you don't even need a cronjob but a simple 'svn up 
/var/www/baypiggies' in the post-commit hook for the repository. 
Otherwise, the cronjob on the web server would look something like:

*/1 * * * * /usr/bin/svn up --username user --password shhh 
/var/www/baypiggies

This example has it running every minute. And if the repository is 
world-readable (it should be) you wouldn't need the --username or 
--password arguments.

-- 
Paul McNett
http://paulmcnett.com
http://dabodev.com



More information about the Baypiggies mailing list