第 172 章 TRAC

简介:

172.1. Ubuntu 安装

172.1.1. source code

过程 172.1. TRAC - source

  1. setup.py

    wget http://peak.telecommunity.com/dist/ez_setup.py
    python ez_setup.py
    					
  2. Trac

    wget http://download.edgewall.org/trac/Trac-1.1.1.tar.gz
    tar zxvf Trac-1.1.1.tar.gz
    cd Trac-1.1.1
    sudo python ./setup.py install
    cd ..
    					

172.1.2. easy_install

过程 172.2. TRAC - easy_install

  1. easy_install

    $ sudo apt-get install python-setuptools
    					
  2. Installing Trac

    sudo easy_install Pygments
    sudo easy_install Genshi
    sudo easy_install Trac
    					

    ClearSilver

    sudo apt-get install python-clearsilver
    					

    python svn

     sudo apt-get install python-svn python-svn-dbg
    					

    create svn repos

    $ svnadmin create /home/netkiller/repos
    					

172.1.3. Apache httpd

			
# cat /etc/httpd/conf.d/trac.conf
<VirtualHost *:80>
  # Change this to the domain which points to your host, i.e. the domain
  # you set as "phabricator.base-uri".
  ServerName trac.repo

  <Location />
    SetHandler mod_python
    PythonInterpreter main_interpreter
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /gitroot/trac/default
    PythonOption TracUriRoot /
  </Location>
# Replace all occurrences of /srv/trac with your trac root below
# and uncomment the respective SetEnv and PythonOption directives.
#  <LocationMatch /cgi-bin/trac\.f?cgi>
#	SetEnv TRAC_ENV /srv/trac
#  </LocationMatch>
#  <IfModule mod_python.c>
#    <Location /cgi-bin/trac.cgi>
#      SetHandler mod_python
#      PythonHandler trac.web.modpython_frontend
#      #PythonOption TracEnv /srv/trac
#    </Location>
#  </IfModule>
</VirtualHost>
			
			




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
机器学习/深度学习 存储 人工智能
【5分钟 Paper】Prioritized Experience Replay
【5分钟 Paper】Prioritized Experience Replay
SVN commit:remains in tree-conflict解决方案
<span style="font-size:14px">       今天提交SVN时报异常</span><span style="font-size:14px; color:rgb(255,0,0); font-family:Arial; line-height:21px">SVN commit: ……remains in tree-conflict</span><span style
3264 0
|
机器学习/深度学习
AtCoder Beginner Contest 218 F - Blocked Roads (最短路径还原 思维)
AtCoder Beginner Contest 218 F - Blocked Roads (最短路径还原 思维)
102 0
|
安全 开发工具 git
Merging 和 Rebasing 的大比拼
Merging 和 Rebasing 的大比拼
173 0
Merging 和 Rebasing 的大比拼
1087. All Roads Lead to Rome (30)
#include #include #include #include using namespace std; int n, k; const int inf = 99999999; const int msize...
907 0
|
JavaScript 前端开发 开发工具
|
Apache Python Ubuntu
|
项目管理 开发工具 git