Ubuntu 安裝 Redmine 並集成 git
#!/bin/bash
# @author: ascetic85 <[email protected]>
# @date : 2012-08-12
#
apt-get install apache2 libapache-ruby1.8 apache2-mpm-worker libapache2-mod-pass enger git-core -y
apt-get install redmine redmine-sqlite -y
ln -s /usr/share/redmine/public /var/www/redmine
echo "RailsEnv production" > /etc/apache2/conf.d/redmine.conf
echo "RailsBaseURI /redmine" >> /etc/apache2/conf.d/redmine.conf
/etc/init.d/apache2 restart
#
# account / password : admin/admin
#
# mkdir -p ~/git_repo/test
# cd ~/git_repo/test
# git init
# git update-server-info
# ...
# ;0)
# configure in redmine
# login
# put /home/xxoo/git_repo/test/.git in Settings
#
# setup git server over http
# http://www.jedi.be/blog/2009/05/06/8-ways-to-share-your-git-repository/
# http://www.kernel.org/pub/software/scm/git/docs/howto/
# setup-git-server-over-http.txt
# Such as:
# sudo mkdir /var/www/myrepo/
# cd /var/ww/myrepo/
# git init
# git update-server-info
# sudo choown -R www-data:www-data myrepo
# sudo echo "LoadModule dav_module libexec/httpd/libdav.so" >>
# /etc/apache2/http d.conf
# sudo a2enmod dav_fs
# sudo a2enmod dav
# cat /etc/apache2/conf.d/git.conf
#<Location /myrepo.git/.git>
# DAV on
# AuthType Basic
# AuthName "Git"
# #AuthUserFile /etc/apache2/passwd.git
# #Require valid-user
#</Location>
# sudo /etc/init.d/apache2 restart
# git clone http://user@ip/myrepo/.git
# so . Task:
# what about create public/{myrepo, linux, git, github}
#
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.