Creating a Trac Project Environment

From Littledamien Wiki
Revision as of 17:08, 4 December 2012 by Video8 (talk | contribs)
Jump to navigation Jump to search

Overview

How to set up a new Trac project environment on Windows using a SQLite database.

Prerequisites

See Trac Installation on Windows Server 2008

Resources

Creating a project environment

trac-admin /path/to/tracdir initenv

Then trac will prompt for settings:

  • Project name: littledamien
  • Database connection string: sqlite:db/trac-littledamien.db

The configuration file for the new project environment is located at [TRAC_PROJECT_DIR]\conf\trac.ini.

Trac web server

Start the server with

tracd --port 8000 /path/to/tracdir

Then you can connect to the trac project with http://localhost:8000/trac/.

See also Installing Trac as a Windows Service

Enabling the Admin tab in the Trac web interface

trac-admin /path/to/my/project permission add <username> TRAC_ADMIN

Git support

Git support is built into Trac 1.0. It has to be enabled in the trac.ini file:

[components]
tracopt.versioncontrol.git.* = enabled

[git]
git_bin = c:\git\bin\git.exe

Then Admin tab > Administration menu > Version Control > Repositories > Add Repository

Database

  • Create a new SQLite database.
sqlite3 /develop/trac-projectname.db