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

931 by wagrant
doc: Add documentation on upgrading to a new SVN revision.
1
Upgrade Procedure for IVLE
2
==========================
3
1099.1.163 by William Grant
Update some docs, and remove other obsolete ones.
4
Upgrading to a new version of IVLE is generally fairly painless, but
5
there are several steps involved.
931 by wagrant
doc: Add documentation on upgrading to a new SVN revision.
6
7
Firstly, in the IVLE checkout, bring your codebase up to date:
8
1099.1.163 by William Grant
Update some docs, and remove other obsolete ones.
9
  svn up
10
11
Then build IVLE:
12
13
  ./setup.py build
931 by wagrant
doc: Add documentation on upgrading to a new SVN revision.
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
1099.1.163 by William Grant
Update some docs, and remove other obsolete ones.
23
  sudo -u postgres psql ivle < userdb/migrations/YYYYMMDD-NN.sql
931 by wagrant
doc: Add documentation on upgrading to a new SVN revision.
24
1099.1.163 by William Grant
Update some docs, and remove other obsolete ones.
25
Now we can install the new version, and update the jails:
931 by wagrant
doc: Add documentation on upgrading to a new SVN revision.
26
965 by apeel
Added paragraph on checking the svn logs to see whether modifications have
27
  sudo ./setup.py install
1099.1.163 by William Grant
Update some docs, and remove other obsolete ones.
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.
931 by wagrant
doc: Add documentation on upgrading to a new SVN revision.
33
34
... and remake the user jails, as this will occasionally be needed:
35
1079 by William Grant
Merge setup-refactor branch. This completely breaks existing installations;
36
  ivle-remakeuser --all --verbose
931 by wagrant
doc: Add documentation on upgrading to a new SVN revision.
37
38
Restart the usrmgt-server and all Apaches, reenable external access,
39
check that everything works, and you're done!