Edgewall Software

Changes between Initial Version and Version 1 of TracMultipleVersions


Ignore:
Timestamp:
Nov 29, 2006, 9:21:56 PM (17 years ago)
Author:
joshland@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracMultipleVersions

    v1 v1  
     1= Managing Multiple Trac Versions =
     2If you use Trac for long enough you will probably need multiple sites.  If you use those long enough you will want to upgrade.  If you must upgrade, you may have need of multiple versions before, during and after the upgrade process.
     3
     4== Preparation ==
     5After we fell in love with 0.8, we had a hard time upgrading to 0.9.  When we installed our new Trac server, we moved to 0.10, but this time we were prepared. 
     6
     7'''Dependancies'''[[br]]
     8 We manage the external dependancies with Portage (Gentoo's Package Manager).  We install Trac, however, by hand.
     9
     10 See: TracInstall#Requirements for a complete listing.
     11
     12'''Local Install'''[[br]]
     13 We installed trac in /var/trac-`[version]`. 
     14
     15
     16== Installing ==
     17Download the tarball, uncompress it, and install. (Repeat for each version) ([attachment:trac-install handy script])
     18
     19{{{
     20ungoliant jms # wget http://ftp.edgewall.com/pub/trac/trac-0.10.2.tar.gz
     21ungoliant jms # wget http://ftp.edgewall.com/pub/trac/trac-0.10.2.tar.gz
     22ungoliant jms # tar zxf trac-0.10.2.tar.gz
     23ungoliant jms # cd trac-0.10.2
     24ungoliant trac-0.10.2 # python setup.py install --prefix=/var/trac-0.10.2
     25running install
     26....
     27copying wiki-macros/TracGuideToc.py -> /var/trac-0.10.2/share/trac/wiki-macros
     28
     29Thank you for choosing Trac 0.10.2. Enjoy your stay!
     30
     31ungoliant trac-0.10.2 #
     32}}}
     33
     34In order to use your new trac installs, you need to override your `PYTHONPATH`.
     35
     36{{{
     37#!sh
     38PYTHONPATH="/var/trac-${VERSION}/lib/python2.4/site-packages"
     39}}}
     40
     41Grab the [attachment:multitrac] script.  You can link to it to automatically parse the version out of the command name, and set the PYTHONPATH.
     42
     43{{{
     44cd /usr/bin
     45ln -s multitrac tracd-0.10.2
     46ln -s multitrac trac-admin-0.10.2
     47}}}
     48
     49'''Example'''
     50{{{
     51ungoliant bin # trac-admin-0.10.2  --version
     52
     53Trac Admin Console 0.10.2
     54=================================================================
     55
     56.....
     57}}}
     58
     59== Supporting Scripts ==
     60 * [attachment:multitrac] - This allows easy use of the various versions of trac.
     61 * [attachment:trac-install] - This allows easy installation of a new version.
     62