[NCLUG] CVS Auto update of web pages?
dann frazier
dannf at dannf.org
Wed Apr 3 15:44:54 MST 2002
here's an implmentation i set up, based somewhat on willy's method:
on commit, cvs causes the creation of a file on the web server. in my case, they
are the same server, so this is just a touch, but this touch could be triggered via
e-mail.
i then have a cron job that wakes up periodically that checks if this file exists.
if so, it removes the file/cvs ups/builds.
On Wed, Apr 03, 2002 at 08:43:57PM +0100, Matthew Wilcox wrote:
> On Wed, Apr 03, 2002 at 12:05:07PM -0700, Sean Reifschneider wrote:
> > When the NCLUG web-pages were being set up in CVS, Willie was talking about
>
> That's "willy", dude :-)
>
> > a mechanism for causing the final pages to be updated immediately when a
> > commit was done. However, this was never implemented, so right now it's
> > just doing a checkout every 15 minutes or something...
> >
> > I see that there's a "CVS/Checkin.prog", which gets called when a "cvs
> > commit" is done. However, this apparently is run while there's still a
> > lock held, so you can't just do a "cvs update" and be done with it.
>
> My implementation sent an email to the webserver user which upon receipt
> took a local lock, ran cvs up, ran make, slept for 180 seconds and
> released the lock.
>
> The delay was to ensure that you couldn't DoS the CVS server this way.
>
> --
> Revolutions do not require corporate support.
> _______________________________________________
> NCLUG mailing list NCLUG at nclug.org
>
> To unsubscribe, subscribe, or modify your settings, go to:
> http://www.nclug.org/mailman/listinfo/nclug
--
dannf at dannf.org
More information about the NCLUG
mailing list