10åã§ä½ããSubversionã¬ãã¸ããª
ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã«ã¯CVSãsubversionãªã©æ§ã
ãªãã®ãããã¾ããããµã¼ãã¼ã®ã»ããã¢ããã«æµæããã人ãããã®ã§ã¯ãªãã§ããããï¼
ããããªããå®éã®ã¨ãããããã±ã¼ã¸åããã¦ããã®ã§é©ãã»ã©ç°¡åã«ã§ãã¦ãã¾ãã¾ãã
ä»åã¯ããã£ã¨ãç°¡åãªæé ã§Subversionã®ã¬ãã¸ããªãµã¼ãã¼ãæ§ç¯ããæ¹æ³ãç´¹ä»ãããã¨æãã¾ãã
åä½ç°å¢
ä»åã®æé ã®åä½ç°å¢ã¯ä¸è¨ã®ã¨ãããOSãã¤ã³ã¹ãã¼ã«ããã¾ã¾ã®ãã¾ã£ãããªç¶æ ãæ³å®ãã¦ãã¾ãã
OS | Debian Linux etch |
Protocol | http |
Web Server | Apache2.2.3 |
ããã§ã¯æ©éããã¾ããããæ¬å½ã«10åéã§æ§ç¯ã§ãã¾ãã
ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«
ä¸è¨ã®ä½æ¥ã¯ãã¹ã¦rootã§ä½æ¥ããããã®ã¨ãã¾ãã(ã¾ã£ãããªç¶æ
ãæ³å®ãã¦ãããããsudoã¯å©ç¨ãã¦ãã¾ããã)
ããã§ã¯å¿
è¦ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã¾ãããã
$ apt-get install apache2-mpm-worker libapache2-svn subversion
apacheã®confè¨å®
ããã§ã¯apacheã®confãè¨å®ãã¾ããDebianã®aptã§å
¥ããapacheã®è¨å®ã¯ãhttpd.confã«è¨è¿°ã¯ããã«ç¨æããã¦ãããã£ã¬ã¯ããªã«ãã¡ã¤ã«ãç½®ãããã«ä½ããã¦ãã¾ããããã«å¾ã£ã¦ä½æãã¾ãã
ããã§ã¯confãã¡ã¤ã«ã®ä½æãè¡ãã¾ãã
$ tee /etc/apache2/sites-enabled/subversion << EOF <Virtualhost *:80> <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
次ã¯ããã©ã«ãã®è¨å®ãoffã«ããæ°è¦ã§è¿½å ããè¨å®ãonã«ãã¾ããã
$ a2dissite default $ a2ensite subversion
èªè¨¼ãã¡ã¤ã«ã®ä½æ
ä»åã¯Basicèªè¨¼ã使ã£ã¦ããã®ã§ãèªè¨¼ç¨ã®ãã¡ã¤ã«ãçæããå¿ è¦ãããã¾ããå ¥åå¾ã«ãã¹ã¯ã¼ããæ±ããããã®ã§ãå©ç¨ããããã¹ã¯ã¼ããå ¥åãã¦ãã ããã
$ htpasswd -c /etc/apache2/.htpasswd ${username}
subversionã¬ãã¸ããªã®ä½æ
ããã§ã¯ãsubversionã¬ãã¸ããªã®ä½æãè¡ãã¾ããsvnadminã¨ããã³ãã³ãã使ã£ã¦ä½æããã¾ããapacheããã¢ã¯ã»ã¹ããå¿ è¦ãããã®ã§ããªã¼ãã¼ãå¤æ´ãã¦ããã¾ãã
$ mkdir /var/svn $ svnadmin create /var/svn/repo $ chown -R www-data:www-data /var/svn/repo
apacheã®åèµ·å
ããã§ã¯æå¾ã«apacheã®åèµ·åãããã¾ãããã
$ /etc/init.d/apache2 restart
apacheãèµ·åãã¦ããã°ããã§å®äºã§ãï¼
åä½ç¢ºèª
ããã§ã¯æ©éãWebãã©ã¦ã¶ããã¢ã¯ã»ã¹ãã¦ã¿ã¾ãããã
http://${hostname}/svn/repo ã«ã¢ã¯ã»ã¹ããã¦ãä¸è¨ã®ç»é¢ã表示ãããã°æåã§ãï¼
便å©ãªããã±ã¼ã¸
ãã¦ãåãã¦è¦ã人ã¯ç°¡åããã¦æåæãããã®ã§ã¯ãªãã§ãããããæ
£ãã¦ããæ¹ã§ããã°ã10åãããããªãã¨æãã¾ãã
ä»å¾ã10åã§ã¤ãããã·ãªã¼ãºãããããã¨ç´¹ä»ãã¦ããããã¨æãã¾ãã