Wednesday 01 October 2003 12:48:35 am
Hi! We use CVS for the new template-files and settings we do in eZ. We use all the override, and append-support in eZ, and then we never need to change anything in the standard distribution, we just add own files - and these files we do CVS-versioning on. At first we did CVS-versioning of the whole eZ-site including our own overrides, and the standard distribution, but we soon found out that this was not a good way to do it. It make it more work when you are upgrading to a newer version, and slower to do CVS-commands. I use Windows as my client, and I use TortoiseCVS which integrates nice into Windows shell (I use Samba to access the files on our eZ-server). We have one or more site's for each person that do development, and we have one official prototype-site. We only work on templates on our own sites (usually we use the same database as the prototype-site), then we do cvs commit on our changes, and the script under creates the prototype site (with cvs checkout etc.) On our server we use this script to make our prototype-site (not in production yet) get updated with the latest from CVS (comments are in Norwegian): #!/bin/sh
# Dette kjøres i crontab, og kan i tillegg kjøres manuelt.
# Scriptet oppdaterer site'n SITE.hit.no med siste # oppdatering fra HiT-CVS. cd /www
# Flytter var-katalogen midlertidig... mv /www/SITE/var /tmp/SITE_var
# Pakker ut ezpublish
tar -xvf /root/SITE_autoupdate/ezpublish-3.2-1.tar
# Fjerner ezpublish
rm -rf /www/SITE mv ezpublish-3.2-1 SITE tar -xvf /root/SITE_autoupdate/editor-1.2.tar
# Henter ut CVSen
mkdir /tmp/SITE-cvs
cvs -d /var/lib/cvs checkout -d /tmp/SITE-cvs ezpublish
cp -r /tmp/SITE-cvs/* /www/SITE/ rm -rf /tmp/SITE-cvs
# Tar over spesialsettinger
cp /root/SITE_autoupdate/site.ini.append.php /www/SITE/settings/override/ cd /www/SITE
# Legger tilbake var-katalogen
mv ./var ./var.org mv /tmp/SITE_var var
# Fikser rettigheter
chmod 755 ./bin/modfix.sh
chmod 755 ./bin/shell/clearcache.sh ./bin/modfix.sh
# Sletter evt. cache ./bin/shell/clearcache.sh --clear-all
|