apt-get install subversion libapache2-svn
setup svn repository
mkdir /home/svn
svnadmin create /home/svn
setup mod_dav_svn in apache2
vi /etc/apache2/mods-available/dav_svn.conf
----------
DAV svn
#跟原本設定的不一樣,原本套件是 SVNPath,只能管理一個
#Project,SVNParentPath 可以在
#svn repository 下設定很多個 Project
SVNParentPath /home/svn/
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
----------
create dav_svn.passwd
htpasswd -c /etc/apache2/dav_svn.passwd
restart apache2
/etc/init.d/apache2 restart
create new project
svnadmin create /home/svn/projectname
chown -R www-data:www-data /home/svn/projectname
import project to your svn server
svn import projectname http://svn.server.com/svn/projectname
checkout it
svn checkout http://svn.server.com/svn/projectname
No comments:
Post a Comment