[cvsnt] RE: CVSNT for Web Development?
Bo.Berglund at system3r.se
Mon Aug 30 13:44:42 BST 2004
The actual script is not available for me right now but it goes something
The CVSROOT/postcommit file contains this:
Then the updatewebsite.bat file is like this:
rem Move to correct disk
rem Change to website folder
echo Updating the website files
rem execute the update in the website sandbox
if errorlevel 1 goto error
echo Website update finished
echo Website update failed
What you need to do is to create the website as a CVS sandbox. This can be
done in two ways:
1) If your website is not yet under CVS control then you can add it to CVS as is:
Import it using WinCvs and set the Import Option "Create CVS directories when importing"
and also on Import Settings check the "Don't create vendor branch.." checkbox.
This will transform the website files into a proper CVS sandbox while importing.
2) If you already have the website under CVS control then you can check it out to a
folder somewhere and then direct your webserver to use that folder as the website
From: Wojciech Jukowski [mailto:wojciech at jukowski.com]
Sent: den 30 augusti 2004 14:29
To: Bo Berglund
Subject: Re: CVSNT for Web Development?
On support.cvsnt Bo Berglund wrote:
> On the CVS server itself I also have Apache running and there I have
> created a sandbox with the web files by checking out the module to a
> folder that Apache is configured to serve.
> Then I have added a call to a batch file in the postcommit script that
> triggers for each commit done to this particular module. The batch
> script moves to the checked out webfiles sandbox and issues a cvs
> update command there. The effect here is that whenever a developer
> commits files to the module they get updated on the CVS server Apache
> as well and you can immediately check them from anywhere on the
> internal LAN.
Hmm could you please send me commands you use in your batch file?
More information about the cvsnt