10åã§ã¤ãããããã¸ã§ã¯ã管çãã¼ã«"Trac"
Tracã®æ§ç¯ã£ã¦ãªããªãé¢åã§ããããèªåãåãã¦ä½ã£ãã¨ãã¯ããããã¨æéåã£ããã¨ãè¦ãã¦ãã¾ãã
ã¨ãã«ã½ã¼ã¹ãããããã¨ãªãã¨ãããããã¨ãããªããã°ããã¾ãããããã±ã¼ã¸ãç¨æããã¦ãã¾ãããæ¥æ¬èªåãããå ´åãªã©ããããã¨é¢åãããã¾ãã
ä»åãååã«å¼ãç¶ããç°¡åã«Tracã®ã¤ã³ã¹ãã¼ã«ãè¡ãæé ãç´¹ä»ãããã¨æãã¾ãã
äºåæºå
ã¾ãã¯ã以ä¸ã®æé ãè¡ã£ã¦ãããã¨ãåæã§ãã
10分で作る、Subversionレポジトリ - UNIX的なアレ
ãã®ãããåä½ç°å¢ã¯ä»¥åã¨åæ§ã§ãã試ãã¦ã¿ãã¨ãããUbuntuã§ãåæ§ã®æé ã§ãããããã§ãã
OS | Debian Linux etch |
Protocol | http |
Web Server | Apache2.2.3 |
ãã¦ãããã§ã¯æ§ç¯ãã¦ããã¾ãããï¼
ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«
ãã¦ãTracã使ãã«ããã£ã¦å¿ è¦ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã¾ããä»åãä½æ¥ã¯ãã¹ã¦rootã§è¡ããã®ã¨ãã¾ãã
$ apt-get install unzip python-setuptools libapache2-mod-python python-subversion python-sqlite
Tracã®ã¤ã³ã¹ãã¼ã«
å¼ãç¶ããTracã®ã¤ã³ã¹ãã¼ã«ããã¾ããæ¬æ¥ãªãå
¨ã¦rootã«ãªãã¹ãã§ã¯ãªãã®ã§ãããsudoãªãåæãªã®ã§ãã®ã¾ã¾æ¸ãã¾ãã
ãªããã¤ã³ã¿ã¢ã¯ãæ ªå¼ä¼ç¤¾ãä½æãã¦ãã翻訳æ¸ã¿ã®ã½ã¼ã¹ã³ã¼ãã使ç¨ãã¾ãã
インタアクト株式会社--公開資料(Trac)
$ cd /usr/local/src $ wget http://www.i-act.co.jp/project/products/downloads/Trac-0.11.1.ja1.zip $ unzip Trac-0.11.1.ja1.zip $ cd Trac-0.11.1.ja1 $ python setup.py build $ python setup.py install
Tracã®ã»ããã¢ãã
ãã¦ãæ£å¸¸ã«ã¤ã³ã¹ãã¼ã«ãå®äºãããã»ããã¢ããããã¾ããããTracã¤ã³ã¹ãã¼ã«ã®ä¸ã§ãã¢ã®é¨åã§ãã
ã¾ãã¯ä¸è¨ã®2ã¤ã®ã³ãã³ãããã£ã¦ãã ããã
$ mkdir /var/trac $ trac-admin /var/trac/project initenv
ãã®æç¹ã§å¯¾è©±å½¢å¼ã§Tracã®ããã¸ã§ã¯ããä½æããç»é¢ã«ãªãã¾ãã
å
¥åããé¨åã¯4ç®æã§ãã
Creating a new Trac environment at /var/trac/project Trac will first ask a few questions about your environment in order to initialize and prepare the project database. Please enter the name of your project. This name will be used in page titles and descriptions. Project Name [My Project]> {ããã¸ã§ã¯ãåãå ¥åãã} Please specify the connection string for the database to use. By default, a local SQLite database is created in the environment directory. It is also possible to use an already existing PostgreSQL database (check the Trac documentation for the exact connection string syntax). Database connection string [sqlite:db/trac.db]> {空ã®ã¾ã¾Enter} Please specify the type of version control system, By default, it will be svn. If you don't want to use Trac with version control integration, choose the default here and don't specify a repository directory. in the next question. Repository type [svn]> {空ã®ã¾ã¾Enter} Please specify the absolute path to the version control repository, or leave it blank to use Trac without a repository. You can also set the repository location later. Path to repository [/path/to/repos]> /var/svn/repo (使ç¨ããã¬ãã¸ããªãã¹ãååæ§ç¯ããã¬ãã¸ããªãåç §ãããããã®ããã«å ¥å)
ãã¦ãç¡äºå ¥åã§ããã§ããããï¼ä¸è¨ã®ã¡ãã»ã¼ã¸ãæå¾ã«è¡¨ç¤ºãããã°ç¡äºæåãã¦ãã¾ãã
The latest documentation can also always be found on the project website: http://trac.edgewall.org/ Congratulations!
ããã§ã¯ãæå¾ã«ãªã¼ãã¼ã®å¤æ´ãè¡ãã¾ãããã
$ sudo chown -R www-data:www-data /var/trac
Apacheã®è¨å®å¤æ´
ããã§ã¯æå¾ã«ãapacheã§ä½¿ç¨ããè¨å®ããã¾ããååã®æé åæã®ãããè¨å®ãã¡ã¤ã«ãä¸æ¸ããã¾ãã念ã®ããããã¯ã¢ãããåå¾ãã¦ããã¾ãã
$ cp -ip /etc/apache2/sites-available/subversion{,.`date +%Y%m%d`} $ tee /etc/apache2/sites-available/subversion << EOF <Virtualhost *:80> SetEnv PYTHON_EGG_CACHE "/var/tmp/.egg-cache" <Location /trac> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /var/trac PythonOption TracUriRoot "/trac" </Location> <Location /svn> DAV svn SVNParentPath /var/svn AuthType Basic AuthName "Basic Auth" AuthGroupFile /dev/null AuthUserFile /etc/apache2/.htpasswd Require valid-user </Location> </Virtualhost> EOF
æå¾ã«apacheã®åèµ·åãããã¾ãã
$ /etc/init.d/apache2 restart
æ£å¸¸ã«apacheãèµ·åããã°OKã§ãï¼
åä½ç¢ºèª
ããã§ã¯æå¾ã«åä½ç¢ºèªããã¾ãããã
http://${servername}/trac/project
ä¸è¨ã®ç»é¢ã表示ãããã°æåã§ãï¼
æå¾ã«
ãã¦ãä»åã¯å²ã¨æéåããã¡ãªTracã®ã¤ã³ã¹ãã¼ã«æé ãã¾ã¨ãã¦ã¿ã¾ããããã£ã¬ã³ã¸ããããã©ããã¾ããããªãï¼ã¨ããçµé¨ãããæ¹ã¯ããä¸åº¦è©¦ãã¦ã¿ã¦ãã ãããã