info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS & a Web site


From: Chris Beggy
Subject: Re: CVS & a Web site
Date: Thu, 18 Oct 2001 11:37:45 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.4

Jason Purdy <address@hidden> writes:

> Hi,
>
> What is a good scheme of automating synchronization between a CVS repository 
> and a Web site (or does a repository have to be separated from the Web site 
> files [besides renaming the files from the ",v" suffix])?  A co-worker & I 
>

The repository *must* be separate from the website and developer
directories.

> PS: Here are some of my ideas:
>
> 1) Create a Perl script/Cron job (run every 15 minutes) which would basically 
> 'cvs history -a -c -D "15 minutes ago"', parse that and affect the Web site 
> directories accordingly.
>
> 2) Create 'trigger' scripts which would be triggered when the developer 
> 'commit'ed their changes, which would also affect the changes on the Web site 
> directories.

Here are my ideas, which I stole from smart people :-) like Nik
Clayton and Phillip Greenspun.

Use Makefiles and the make utility to implement the triggering:

   make checkout     to checkout a site into a new working
                     directory
   make update       to commit/update changes in a working
                     directory
   make test         to put the latest version in the test site,
                     if you have one
   make production   to put the latest version in the live
                     production site

pserver commands allow for the repository, development, test and
host servers to be different, which is usually a good practice.

Chris


reply via email to

[Prev in Thread] Current Thread [Next in Thread]