Creating a Trac Project Environment: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 5: | Line 5: | ||
See [[Trac Installation on Windows Server 2008]] | See [[Trac Installation on Windows Server 2008]] | ||
==Resources== | |||
* [http://trac.edgewall.org/wiki/TracInstall#CreatingaProjectEnvironment TracInstall: Create a Project Environment] | |||
* [http://littled.dbarchowsky.com/trac/wiki/TracGuide The Trac User and Administration Guide] | |||
==Creating a project environment== | ==Creating a project environment== | ||
<syntaxhighlight lang="dos"> | <syntaxhighlight lang="dos"> | ||
trac-admin /path/to/tracdir initenv | trac-admin /path/to/tracdir initenv | ||
| Line 18: | Line 20: | ||
The configuration file for the new project environment is located at <code>[TRAC_PROJECT_DIR]\conf\trac.ini</code>. | The configuration file for the new project environment is located at <code>[TRAC_PROJECT_DIR]\conf\trac.ini</code>. | ||
==Trac web server== | |||
Start the server with | Start the server with | ||
| Line 25: | Line 29: | ||
Then you can connect to the trac project with <code><nowiki>http://localhost:8000/trac/</nowiki></code>. | Then you can connect to the trac project with <code><nowiki>http://localhost:8000/trac/</nowiki></code>. | ||
See also [[Trac_Installation_on_Windows_Server_2008#Install_Trac_as_a_Windows_service|Installing Trac as a Windows Service]] | |||
==Enabling the Admin tab in the Trac web interface== | |||
<syntaxhighlight lang="dos"> | |||
trac-admin /path/to/my/project permission add <username> TRAC_ADMIN | |||
</syntaxhighlight> | |||
==Database== | ==Database== | ||
Revision as of 15:26, 4 December 2012
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
Database
- Create a new SQLite database.
sqlite3 /develop/trac-projectname.db