info-cvs
[Top][All Lists]
Advanced

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

Re: Checkout./export a copy to /var/www


From: Pierre Asselin
Subject: Re: Checkout./export a copy to /var/www
Date: Tue, 21 Sep 2004 14:05:10 +0000 (UTC)
User-agent: tin/1.6.1-20030810 ("Mingulay") (UNIX) (NetBSD/1.5.4_ALPHA (i386))

Anand Graves <address@hidden> wrote:
> I use WinCVS to checkout a copy on my PC. When I do a commit, the file
> checks in a linux server. I would like a committed file to be checked
> out/copied/exported to /var/www/myproject.

> When I search for this, I keep finding this (for the loginfo file):
> ^cyclic-pages           (date; cat; (sleep 2; cd /u/www/local-docs;
>  cvs -q update -d) &) >> $CVSROOT/CVSROOT/updatelog 2>&1

> But this will update the checked out tree in `/u/www/local-docs' and my
> checked out tree is on a windows PC.

The checked-out tree is on Windows and the cvs repository is on a
Linux box, but where is /var/www ?  That sounds like Linux too.  If
your web server is also your cvs server, just change the
"/u/www/local-docs" in the example to "/var/www/myproject" and you're
done.  The commit on Windows triggers the loginfo on the Linux server,
which triggers the update on the Linux server.

If the web server is another box, you need to make loginfo trigger an
update *from the web server*.  If the web server is Linux (/var/www ?)
the standard solution is ssh, which when properly setup allows someone
on the cvs server to run commands on the web server.  If the web
server is on Windows...  well, I'd install Cygwin
(http://www.cygwin.com) and still use ssh but that's just me.

-- 
pa at panix dot com


reply via email to

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