From owner-freebsd-chat Tue Jul 3 21:40:27 2001 Delivered-To: freebsd-chat@freebsd.org Received: from smtp2.knology.net (user-24-214-63-14.knology.net [24.214.63.14]) by hub.freebsd.org (Postfix) with SMTP id 9FC2737B401 for ; Tue, 3 Jul 2001 21:40:24 -0700 (PDT) (envelope-from steve@havk.org) Received: (qmail 23218 invoked from network); 4 Jul 2001 04:40:23 -0000 Received: from user-24-214-56-224.knology.net (HELO bsd.havk.org) (24.214.56.224) by user-24-214-63-14.knology.net with SMTP; 4 Jul 2001 04:40:23 -0000 Received: by bsd.havk.org (Postfix, from userid 1001) id 06BA11A7B5; Tue, 3 Jul 2001 23:39:54 -0500 (CDT) Date: Tue, 3 Jul 2001 23:39:53 -0500 From: Steve Price To: Dan Langille Cc: freebsd-chat@FreeBSD.ORG Subject: Re: webpages and CVS - what about CVS/Root etc? Message-ID: <20010703233953.A1208@bsd.havk.org> References: <200107040053.f640rO745505@lists.unixathome.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107040053.f640rO745505@lists.unixathome.org>; from dan@langille.org on Tue, Jul 03, 2001 at 08:53:22PM -0400 X-Operating-System: FreeBSD 4.3-STABLE i386 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jul 03, 2001 at 08:53:22PM -0400, Dan Langille wrote: > I know you're out there. You're using cvs to store your webpages. How > do you publish the pages? Via "cvs update" directly into the document > root of the website? If so, what are you doing about files which you may > not want people to see, such as CVS/Entries? CVSup is your friend. Many gazillions of thanks to John Polstra and everyone else that made it possible. Up until very recently I had a handful of sites load balanced across 4 servers that were CVSup'ing from a master server that would rebuild the websites every ten minutes from CVS. The whole process is "relatively atomic" and in my case with a handful of sites and several thousands of files over local LAN the updates were taking only a few seconds to complete at most. The process went basically like this. On the master a cronjob ran at 5, 15, 25, 35, ... past each hour that did this. cvs co -rSTABLE make install And on each of the load-balanced servers another cronjob ran at 0, 10, 20, 30, ... past each hour that did this. cvsup supfile Also once a day I'd remove the tree on the master before doing a 'make install' so that any crufty files were removed. No doubt there's a better way but this worked flawlessly for me for a little over a year. -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message