welcome: please sign in

Diff for "WebServicesAdmin/MoinMoin"

Differences between revisions 2 and 6 (spanning 4 versions)
Revision 2 as of 2012-12-18 01:10:12
Size: 805
Editor: ClintonEbadi
Comment:
Revision 6 as of 2013-01-29 06:06:50
Size: 1361
Editor: ClintonEbadi
Comment: switch to hg
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from DaemonAdmin/MoinMoin
Line 6: Line 7:
 * `$version` is the moin version as three digits without the dots, e.g. 195 for 1.9.5
 * `$majversion` is the $version, minus the final digit e.g. 19 for 1.9.x. This lets us upgrade an entire series without require reconfiguration.
 * `$sourcedir` = `$moin/src/moin$version`
 * `$targetdir` = `$moin/installed/moin$majversion`
 * `$version` is the full moin version e.g. 1.9.6
 * `$shortversion` is the first two digits of the version without the dots. E.g. 19 for moin 1.9.x. This is to allow users to get automatic updates with a release series.
 * `$sourcedir` = `$moin/src/moin-1.9` (tracking the current stable branch using MercurialVcs)
 * `$targetdir` = `$moin/installed/moin$shortversion`
Line 15: Line 16:
Download and unpack source into the appropriate `$sourcedir`. Install: Update to the latest stable tag. Try not to pull interim releases, unless needed.

Install:
Line 18: Line 21:
python moin.py -force --record=install_$version.log --prefix=$targerdir --install-data=$targetdir python setup.py install --force --record=install_$version.log --prefix=$targetdir --install-data=$targetdir
Line 21: Line 24:
Update the `moinMoin` macro to use the latest htdocs prefix (`moin_static$version` without the dots).
Line 22: Line 26:
=== Local Changes ===
Line 23: Line 28:
Ensure that `$targetdir/bin/moin` and `.../share/moin/server/moin.cgi` include the python library paths for the afs moin. Usually something like:

{{{
import sys
sys.path.insert(0, '$targetdir/lib/python2.6/site-packages')
}}}

Update `moinmoin-install` to copy files from the new version if needed.

1. File System Layout

Let

  • $moin = /afs/hcoop.net/common/app/moin.

  • $version is the full moin version e.g. 1.9.6

  • $shortversion is the first two digits of the version without the dots. E.g. 19 for moin 1.9.x. This is to allow users to get automatic updates with a release series.

  • $sourcedir = $moin/src/moin-1.9 (tracking the current stable branch using MercurialVcs)

  • $targetdir = $moin/installed/moin$shortversion

$moin/installed is set in DomTool's Config.worldReadable list so that all members can serve moin static content.

2. Installation of a new version

Update to the latest stable tag. Try not to pull interim releases, unless needed.

Install:

python setup.py install --force --record=install_$version.log --prefix=$targetdir --install-data=$targetdir

Update the moinMoin macro to use the latest htdocs prefix (moin_static$version without the dots).

2.1. Local Changes

Ensure that $targetdir/bin/moin and .../share/moin/server/moin.cgi include the python library paths for the afs moin. Usually something like:

import sys
sys.path.insert(0, '$targetdir/lib/python2.6/site-packages')

Update moinmoin-install to copy files from the new version if needed.


CategorySystemAdministration

WebServicesAdmin/MoinMoin (last edited 2018-10-04 02:34:05 by ClintonEbadi)