最終更新:2011-08-23 (火) 01:23:02 (2523d)  

tokkyo/設定/リポジトリ はてなブックマークを見る
Top / tokkyo / 設定 / リポジトリ

Subversionの設定

svnadmin create /var/www/svn/{project}
svn mkdir file:///var/www/svn/{project}/trunk file:///var/www/svn/{project}/tags file:///var/www/svn/{project}/branches -m 'Create trunk, tags, and branches.' 
emacs /var/www/svn/{project}/conf/passwd
emacs /var/www/svn/{project}/conf/svnserve.conf

.htpasswdの設定

emacs /var/www/.htpasswd.svn

Tracの設定

trac-admin /var/www/trac/{project} initenv
trac-admin /var/www/trac/{project} add {user} TRAC_ADMIN
emacs /var/www/trac/{project}/conf/trac.ini

Apacheの設定

        <Location /trac>
                PythonInterpreter main_interpreter
                SetHandler mod_python
                PythonHandler trac.web.modpython_frontend
                PythonOption TracEnvParentDir /var/www/trac/
                PythonOption TracUriRoot /trac/

                SetEnv PYTHON_EGG_CACHE /var/www/.python-eggs

        </Location>
        <LocationMatch "/trac/[^/]+/login">
                AuthType Basic
                AuthName "access to trac"
                AuthUserFile /var/www/.htpasswd.svn
                Require valid-user
        </LocationMatch>