Difference between revisions of "Trac setup"

From DiLab
Jump to: navigation, search
(New page: Look at the Trac website for more: [http://trac.edgewall.org/wiki/TracInstall TracInstall] == Installation == This was used for Trac 0.11 Get the dependencies sudo apt-get install sub...)
 
(Setup)
Line 36: Line 36:
trac-admin /var/lib/trac/projenv initenv
trac-admin /var/lib/trac/projenv initenv


Now setup your webserver (apache2 in my case) and restart it.

Alternatively you can run tracd for the trac envirionment (see the trac wiki)



== Upgrade ==
== Upgrade ==

Revision as of 16:44, 8 October 2008

Look at the Trac website for more: TracInstall

Installation

This was used for Trac 0.11

Get the dependencies

sudo apt-get install subversion python sqlite 
sudo apt-get install python-clearsilver python-sqlite python-subversion

Get the "setuptools" and "easy_install" unless you have them already

wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg
sudo sh ./setuptools-0.6c9-py2.5.egg

Install the latest Trac (ose only one method from below)

sudo easy_install trac

...or for a specific version (0.11)

sudo easy_install http://svn.edgewall.org/repos/trac/tags/trac-0.11

...or download the source and run setup.py:

wget http://svn.edgewall.org/repos/trac/tags/trac-0.11
python ./setup.py install


Setup

First, set up your subversion repository, if any. Then, create a new trac project environment, e.g.

trac-admin /var/lib/trac/projenv initenv

Now setup your webserver (apache2 in my case) and restart it. Alternatively you can run tracd for the trac envirionment (see the trac wiki)

Upgrade

You may want to upgrade your earlier trac version tickets and wiki. First, back up the old trac project environment (repository) using

trac-admin /var/lib/trac/projenv hotcopy <backup-directory>

Then remove the previous trac version and install the new version. Finally, upgrade the trac project

trac-admin /path/to/projenv upgrade
trac-admin /path/to/projenv wiki upgrade

Now test it!