Creating a Trac Project Environment: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 14: | Line 14: | ||
* See [http://trac.edgewall.org/wiki/TracInstall#CreatingaProjectEnvironment TracInstall: Create a Project Environment] | * See [http://trac.edgewall.org/wiki/TracInstall#CreatingaProjectEnvironment TracInstall: Create a Project Environment] | ||
<syntaxhighlight lang="dos"> | |||
trac-admin /path/to/tracdir initenv | |||
</syntaxhighlight> | |||
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 <code>[TRAC_PROJECT_DIR]\conf\trac.ini</code>. | |||
Start the server with | |||
<syntaxhighlight lang="dos"> | |||
tracd --port 8000 /path/to/tracdir | |||
</syntaxhighlight> | |||
Then you can connect to the trac project with <code><nowiki>http://localhost:8000/trac/</nowiki></code>. | |||
==Database== | ==Database== | ||
Revision as of 17:58, 2 December 2012
Overview
How to set up a new Trac project environment on Windows using a SQLite database.
Prerequisites
- Python
- The Windows installation of Python doesn't update the "path" environment variable. It's necessary to do that manually to include the path to the python executable.
- Same is true for Trac. By default the trac libraries are installed in
[PYTHON_INSTALL_DIR]\Lib\site-packages\. Thetrac-adminexecutable is located inc:\python27\scripts\(wherec:\phython27\is the installation directory for Python).
- Python setuptools
- Genshi
- And of course, Trac. Which for now requires Python 2.7 (even though Python 3.x exists).
It looks like it's possible to run multiple python environments?
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.
Start the server with
tracd --port 8000 /path/to/tracdir
Then you can connect to the trac project with http://localhost:8000/trac/.
Database
- Create a new SQLite database.
sqlite3 /develop/trac-projectname.db