[cvsnt] Using CVSNT with Web Development

Bo Berglund Bo.Berglund at system3r.se
Thu Oct 7 17:54:43 BST 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


I am doing much the same thing myself, except I am the single developer...
But the changes in the website are ordered by the marketing people and they
need to check what I am doing before it goes out to the real web server.

I am also working remotely through a VPN connection into the company LAN.

I have set up a webserver (Apache in this case) on the Win XP Pro machine
that acts as the CVSNT server. The repository resides in a disk partition
different from the webserver sites.

The website as such is a checked out copy of the CVS repository so it is
complete with the CVS metadata and all.

On the CVSNT server I have entered a script call in the postcommit script
for commits to the website. This script is a simple batch file that basically
does the following (paths are approximate from my head):

E:  (to change to the disk of the webserver)
CD \Apache\websites\site1
cvs update

This will update the website and the developer can immediately watch the result.

If there are more than one developer you can have several websites with the same
contents but different branches and let the postcommit script decide what to do
depending on the user or branch committed.

Bo

-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Beaker
Sent: den 7 oktober 2004 17:17
To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
Subject: [cvsnt] Using CVSNT with Web Development


Hi Guys and Gals,

I'm setting up a new installation of CVS for shared web development, and
only having used CVS for developing applications in C/C++ before have a
problem which I'm hoping someone will have an idea or two about.

Firstly, a bit about the system:

Window 2003 Server, running CVSNT 2.0.51d, also running IIS for development
websites. The server is running on a secure network with access to the
network over VPN for several remote developers.

At the moment the developers work directly to the development sites using
file shares, or Visual Studio.  As they're all working on different sites
(at the moment) it's not really a problem.

What we want to achieve:

Having setup CVS with a repository for all the website roots, and giving
access to the relevant developers, we want to be able to allow then to
checkout and checkin files, but also have them put into the relevant web
roots in the IIS folders so they can see them working in the development
environment.  My first thought was some kind of automation script that
triggers when a file is checked in by a user, so that it's simply copied to
the IIS root folder at the correct level.

Now I don't know if this is something CVS can handle inherently, or whether
there is a mechanism that can be fired on a CVS event, such as a checkin.

We prefer to do it this way so that there aren't lots of development sites
running on local workstations, and so that the sites are being developed in
a replica of a live environment, makes it eaiser to check that things will
work in the real world.

Any pointers, websites, hints, tricks etc that you have, please respond
directly or in reply to this post.

Regards,
Beak


_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook