Editing
Creating a Trac Project Environment
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Overview== How to set up a new [http://trac.edgewall.org/ Trac] project environment on Windows using a [http://www.sqlite.org/ SQLite] database. ==Prerequisites== 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 == Using PowerShell as Administrator: <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>. ==Trac web server== 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>. 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> ==Git support== Git support is built into Trac 1.0. It has to be enabled in the trac.ini file: <pre> [components] tracopt.versioncontrol.git.* = enabled [git] git_bin = c:\git\bin\git.exe </pre> Then Admin tab > Administration menu > Version Control > Repositories > Add Repository * [http://trac.edgewall.org/wiki/0.12/TracRepositoryAdmin Trac Repository Administration] * [http://trac.edgewall.org/wiki/TracGit Trac Git] ==<strike>Database</strike>== * <strike>Create a new SQLite database.</strike> <syntaxhighlight lang="dos"> sqlite3 /develop/trac-projectname.db </syntaxhighlight> [[Category:Web_Development]]
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information