![]() |
![]() |
| Information Technology home | About Information Technology | Courses | Staff | Students | Research | |
|
The CERG Web Pages
Web PagesThese web pages are available for maintenance by members of CERG through an SVN repository. The SVN repository is at https://svngen.infotech.monash.edu.au/svn/CERG/WebPages . Further information about accessing the repository and the standards to be followed will be added in due course. The /var/www/cerg directory/var/www/cerg is the root directory for the CERG URL ( http://cerg.infotech.monash.edu.au/), and it contains a number of files and subdirectories, shown below. Files flagged '*' have not yet been properly added to the SVN repository, or are undergoing changes. Files that correspond to links in the sidebar have an explicit link in their title.
The CERG SVN RepositoryThe CERG web pages are maintained using Subversion, aka SVN (for more information on SVN, consult the SVN web page). SVN is a version control system that allows multiple users to work on the same project, and edit files belonging to that project without stepping on each others' toes. SVN tracks all changes, and where there is a conflict between two different edits, warns the user about the conflict so that corrective action may be taken. When there is no conflict, multiple edits occur transparently. SVN runs on a server maintained by the faculty, called svngen (svn general use). CERG uses a separate server called vm-cerg. All the files in the CERG web pages belong to a project called CERG, and are in a subdirectory of that project called WebPages on the svngen server. This directory contains the most recent version of each of the files, along with information that allows the recovery of any version in the edit history. The CERG web pages are in a directory /var/www/cerg/ on machine vm-cerg, and may be edited by anyone with an account on the CERG server. However, you need to know about the SVN repository so that updates in one are reflected in the other. Changes to the SVN repository need to be loaded to the web pages, and vice versa. This is done by the two commands svn commit (CERG to SVN) and svn update (SVN to CERG). Quick and Easy WayA quick and easy way to edit CERG web pages is to log in to the CERG server, vm-cerg.infotech.monash.edu.au. If you do not have an account on this machine, please contact John Hurst. Once you have logged into vm-cerg, visit the directory /var/www/cerg/, where you can edit the files directly. Because this directory is a working directory under SVN maintenance, you can commit your changes directly by just doing
$ svn commit -m "message describing your changes"
after completing your edits. More Formal WayAlternatively, if you don't have an account on vm-cerg itself (or even if you do), you can use your own machine by setting up an SVN working directory. If you need information on using SVN, you should consult other sources, but the following should indicate the basic idea:
$ cd to somewhere where you want to create a working directory
$ svn checkout http://svngen.infotech.monash.edu.au/svn/CERG/WebPages
$ cd WebPages
You are now in the working directory (called WebPages) where you can make edits to the webpage files. When you have finished your edits, the following will commit your changes:
$ svn commit -m "message describing your changes"
This is not the end of the process, since your changes at this stage have been committed to the SVN repository, but not updated in the actual web pages. This will ultimately be done automatically, but for the moment send a message to John Hurst to ask that the web pages be reset.
$ mail -s 'Please update the CERG web pages' -F 'ajh@csse.monash.edu.au'
Note that this step is not necessary if you edit the web pages on vm-cerg directly. |