部署参考: http://trac.edgewall.org/wiki/TracOnWindows#Installingmod_pythonoptional
部署必装组件(按先后安装顺序):
1.python:python-2.5.msi
2.setuptools:setuptools-0.6c7.win32-py2.5.exe
3.Genshi:Genshi-0.5.win32-py2.5.exe
4.数据库模块:pysqlite-2.5.0.win32-py2.5.exe
5.svn模块:svn-python-1.4.5.win32-py2.5.exe
6.svn软件安装
7.trac:Trac-0.11.win32.exe
部署步骤:
准备:
1.建立好trac对应的目录,例如c:/trac
2.用svn工具创建repos,例如c;/projectRepo
在python安装目录的scripts目录下执行:
c:/Python25/Scripts/trac-admin.exe c:/trac initenv
Project Name [My Project]> #trac名称
Database connecting string [sqlite:db/trac.db]> #直接回车即可
Repository type [svn]> #直接回车即可
Path to repository [/path/to/repos]> #c;/projectRepo
#成功后可见
The latest documentation can also always be found on the project
website:
http://trac.edgewall.org/
Congratulations!
启动trac
c:/Python25/Scripts/tracd-script.py -p 8000 c:/projects/trac/my-project
在浏览器中输入http://localhost:8000即可访问trac页面<<未完待续