Last active
February 21, 2017 07:07
-
-
Save kyokuheki/d3abdb8e5390dd1675341045d806b1a2 to your computer and use it in GitHub Desktop.
Tracの構築手順 ref: http://qiita.com/kyokuheki/items/93f24582c20d49a9e95f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install subversion | |
vim ~/.subversion/servers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo htpasswd -c /var/www/trac/.htpasswd admin | |
sudo htpasswd /var/www/trac/.htpasswd user2 | |
sudo chown -R www-data:www-data /var/www/trac/ | |
sudo service apache2 restart | |
sudo -u www-data trac-admin /var/www/trac/myproject/ permission add admin TRAC_ADMIN | |
sudo -u www-data trac-admin /var/www/trac/myproject/ permission add administrators TRAC_ADMIN | |
sudo -u www-data trac-admin /var/www/trac/myproject/ permission add admin administrators | |
sudo trac-admin /var/www/trac/myproject/ permission list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo easy_install https://trac-hacks.org/svn/iniadminplugin/0.11 | |
sudo vim /var/www/trac/myproject/conf/trac.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo easy_install Markdown | |
sudo easy_install https://trac-hacks.org/svn/markdownmacro/trunk/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo easy_install https://github.com/mandic-cloud/trac-slack-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install graphviz | |
sudo mkdir /var/graphviz | |
export GRAPHVIZ_DOT=/var/graphviz | |
sudo easy_install https://trac-hacks.org/svn/plantumlmacro/trunk | |
sudo apt isntall default-jre | |
sudo apt install plantuml | |
find / -name plantuml.jar | |
sudo vim /var/www/trac/myproject/conf/trac.ini | |
sudo service apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install trac-accountmanager | |
sudo vim /var/www/trac/myproject/conf/trac.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install language-pack-ja | |
update-locale LANG=ja_JP.UTF-8 | |
# 再ログイン |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo a2ensite default-ssl.conf | |
sudo a2enmod ssl | |
sudo chown -R www-data:www-data /var/www/trac/ | |
sudo service apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn co https://svn.edgewall.org/repos/trac/branches/1.2-stable/ trac-1.2-stable | |
cd trac-1.2-stable | |
python setup.py update_catalog -l ja | |
python setup.py compile_catalog -f | |
sudo python setup.py install | |
sudo service apache2 restart | |
sudo -u www-data trac-admin /path/to/projenv upgrade | |
sudo -u www-data trac-admin /path/to/projenv wiki upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# プロキシの設定 | |
export HTTP_PROXY=http://proxy.example.com:8080/ | |
export HTTPS_PROXY=http://proxy.example.com:8080/ | |
export FTP_PROXY=http://proxy.example.com:8080/ | |
# Tracが依存するパッケージのインストール | |
sudo apt install python-setuptools python-dev python3-dev libapache2-mod-wsgi sqlite3 subversion python3-pygments python-pygments | |
sudo apt install apache2-utils | |
sudo apt install gcc | |
sudo easy_install babel | |
sudo easy_install genshi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
svn co https://svn.edgewall.org/repos/trac/tags/trac-1.1.6/ | |
cd trac-1.1.6 | |
python setup.py update_catalog -l ja | |
python setup.py compile_catalog -f | |
sudo python setup.py install | |
sudo service apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir /var/www/trac | |
sudo vim /var/www/trac/trac.wsgi | |
sudo chmod 755 /var/www/trac/trac.wsgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo vim /etc/apache2/sites-available/trac.conf | |
sudo a2ensite trac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo trac-admin /var/www/trac/myproject initenv | |
sudo trac-admin /var/www/trac/myproject/ deploy /var/www/trac/myproject | |
sudo -u www-data trac-admin /var/www/trac/myproject/ wiki load /usr/share/trac-ja-resource/trac/wiki/default-pages | |
sudo vim /var/www/trac/vnfdiy/conf/trac.ini | |
sudo chown -R www-data:www-data /var/www/trac/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
http-proxy-host = proxy.example.com | |
http-proxy-port = 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WSGIDaemonProcess trac user=www-data group=www-data processes=2 threads=25 maximum-requests=10000 | |
WSGIProcessGroup trac | |
WSGIScriptAlias /trac /var/www/trac/trac.wsgi | |
<Directory /var/www/trac> | |
WSGIApplicationGroup %{GLOBAL} | |
Require all granted | |
</Directory> | |
<LocationMatch "/trac/.*/login"> | |
AuthType Basic | |
AuthName "trac" | |
AuthUserFile "/var/www/trac/.htpasswd" | |
Require valid-user | |
</LocationMatch> | |
Alias /trac/chrome /usr/lib/python2.7/dist-packages/trac/htdocs | |
<Location "/trac/chrome"> | |
Require all granted | |
</Location> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[components] | |
plantuml.macro.plantumlmacro = enabled | |
[plantuml] | |
java_bin = java | |
plantuml_jar = /usr/share/plantuml/plantuml.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
os.environ['TRAC_ENV_PARENT_DIR'] = '/var/www/trac' | |
os.environ['PYTHON_EGG_CACHE'] = '/var/www/trac/eggs' | |
import trac.web.main | |
application = trac.web.main.dispatch_request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment