~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to doc/upgrade.txt

  • Committer: Matt Giuca
  • Date: 2009-04-25 14:37:42 UTC
  • mfrom: (1195.1.19 marks-fix)
  • Revision ID: matt.giuca@gmail.com-20090425143742-741mh2plk0cgib3e
Merged branch marks-fix. Fixes Google Code issue 144.

bin/ivle-marks: Completely rewritten. (Was hopelessly out-of-date, and didn't
    work at all. Now works on the current database model, and has new features
    to boot - able to select the semester and cutoff date).

ivle.worksheet.utils: Added calculate_mark, which is from the duplicated code
    in both bin/ivle-marks and ivle.webapp.tutorial.OfferingView.populate.
    Also added some extra optional arguments for calculating
    exercise/worksheet scores from a particular date.

ivle.webapp.tutorial: Call ivle.worksheet.utils.calculate_mark instead of
    manually calculating (avoid code duplication).

ivle.database: A few new methods on the Subject class, for retrieving
    offerings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Upgrade Procedure for IVLE
 
2
==========================
 
3
 
 
4
Upgrading to a new version of IVLE is generally fairly painless, but
 
5
there are several steps involved.
 
6
 
 
7
Firstly, in the IVLE checkout, bring your codebase up to date:
 
8
 
 
9
  svn up
 
10
 
 
11
Then build IVLE:
 
12
 
 
13
  ./setup.py build
 
14
 
 
15
Now comes the time to block external access to IVLE. Stopping Apache
 
16
on each server in the cluster and killing any remaining python-console
 
17
processes is highly recommended.
 
18
 
 
19
You should then run any outstanding database migrations. A note of the
 
20
latest applied migration should probably be kept somewhere to avoid
 
21
running the same one twice. This command must be run once for each.
 
22
 
 
23
  sudo -u postgres psql ivle < userdb/migrations/YYYYMMDD-NN.sql
 
24
 
 
25
Now we can install the new version, and update the jails:
 
26
 
 
27
  sudo ./setup.py install
 
28
  sudo ivle-buildjail
 
29
 
 
30
Note that this will not perform a full rebuild of the template jail -
 
31
only the IVLE files inside the jail will be updated. To force a full
 
32
jail rebuild, give ivle-buildjail the -r option.
 
33
 
 
34
... and remake the user jails, as this will occasionally be needed:
 
35
 
 
36
  ivle-remakeuser --all --verbose
 
37
 
 
38
Restart the usrmgt-server and all Apaches, reenable external access,
 
39
check that everything works, and you're done!