Windows Vistaä¸ã« Apacheï¼Subversionï¼Tortoise SVN ãã¤ã³ã¹ãã¼ã«ãã¦ï¼ãããã¯ã¼ã¯è¶ãã«ãªãã¸ããªãå©ç¨ã§ããããã«ããæé
èªåã²ã¨ãã§SVNã使ãããå ´åã¯ï¼PCå
ã«ãªãã¸ããªãä½æãï¼ãããããã§ãã¯ã¢ã¦ãããã ãã
å¿
è¦ãªã½ããã¯ï¼Tortoise SVNã ãã§æ¸ãã
ãããï¼è¤æ°ã®ã¡ã³ãã§ãªãã¸ããªãå ±æãããå ´åã¯ï¼Tortoise SVNã«å ãã¦
- Apache
- Subversion
ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã
ããããã°HTTPçµç±ã§ãªãã¸ããªãå©ç¨ã§ããããã«ãªãï¼Webãã©ã¦ã¶ããããªãã¸ããªãé²è¦§ã§ããã
ããã¡ã³ããï¼äººã ãã§ï¼èªå® ã§å人çã«ä½æ¥ãããããªå ´åã§ãï¼ããã©ã¦ã¶çµç±ã§ãªãã¸ããªãè¦ãããã¨ããã®ã¯ä¾¿å©ã ã
ä¸è¨ã®ãããªç°å¢ãï¼Windows Vista ä¸ã§æ§ç¯ããããã®æé ãä¸è¨ã«è¨ãã
â»ã¡ãªã¿ã«ï¼Subversionã®å
¥æå
ãµã¤ãã2010å¹´ã«å¤æ´ãããããï¼ä¸ã®ä¸ã®å¤ãWebãã¼ã¸ã®æ
å ±ã¯ä¸æ£ç¢ºã«ãªã£ã¦ãããããã
- ï¼ï¼ï¼Tortoise SVNã®ã¤ã³ã¹ãã¼ã«
- ï¼ï¼ï¼Subversionã®ã¤ã³ã¹ãã¼ã«
- ï¼ï¼ï¼ãªãã¸ããªã®åä½ãã¹ã
- ï¼ï¼ï¼ã¦ã¼ã¶èªè¨¼ã®è¨å®
- ãã©ãã«ã·ã¥ã¼ã
åæäºé
- XAMPPã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ã¨ãããï¼xampp-win32-1.7.1.zipï¼D:\xampp\ï¼
- Vistaã¸ã®XAMPPã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ãhttp://language-and-engineering.hatenablog.jp/entry/20110730/p1ããåç §ã
- Windows Vistaã®ç®¡çè ã¦ã¼ã¶ã§ä½æ¥ãããã®ã¨ããã
- Tortoise SVNã®åºæ¬çãªå©ç¨æ³ãç¥ã£ã¦ãããã®ã¨ãããï¼èªä¿¡ãªãå ´åã¯ä¸è¨ãã¼ã¸ãåç §)
Tortoise SVNã®ä½¿ãæ¹ãè¦ãã¦ãããããã®ãã¼ã¸ãï¼åç´ï¼ä¸ç´ï¼
http://language-and-engineering.hatenablog.jp/entry/20110114/p1
ï¼ï¼ï¼Tortoise SVNã®ã¤ã³ã¹ãã¼ã«
http://tortoisesvn.net/downloads.html
ããï¼ãTortoise SVN 32bitããæ¼ä¸ãã¦
TortoiseSVN-1.6.16.21511-win32-svn-1.6.17.msi
ããã¦ã³ãã¼ãã
å®è¡ã
ãã¹ã¦Nextã
â»ä¸åº¦ã ãUACãã¤ã¢ãã°ãåºã
Windowsåèµ·åã
http://tortoisesvn.net/downloads.html
ã®ä¸é¨ããï¼ã©ã³ã²ã¼ã¸ããã¯ï¼Japaneseã®32bit Setupã¨ãã¦
LanguagePack_1.6.16.21511-win32-ja.msi
ããã¦ã³ãã¼ãã
å®è¡ã
â»ä¸åº¦ã ãUACãã¤ã¢ãã°ãåºã
åèµ·åã¯ä¸è¦
é©å½ãªãã©ã«ããå³ã¯ãªãã¯ï¼Tortoise SVNï¼Settingsï¼Generalï¼Languageï¼Japanese
ããã§æ¥æ¬èªåãããã
ï¼ï¼ï¼Subversionã®ã¤ã³ã¹ãã¼ã«
http://subversion.apache.org/packages...
ã®ä¸çªä¸ã®ã»ããã
ãWindowsãã®ãWin32Svnããã¯ãªãã¯ã
http://sourceforge.net/projects/win32...
ã«é·ç§»ããã
ãDownloadããã
Setup-Subversion-1.6.17.msi
ããã¦ã³ãã¼ãã
å®è¡ã
ãã¹ã¦Nextã
â»ä¸åº¦ã ãUACãã¤ã¢ãã°ãåºã
以ä¸ã®2ãã¡ã¤ã«ã D:\xampp\apache\moduleså ã«ã³ãã¼
- C:\Program Files\Subversion\bin\mod_authz_svn.so
- C:\Program Files\Subversion\bin\mod_dav_svn.so
D:\xampp\apache\conf\httpd.confãã¨ãã£ã¿ã§ç·¨éã
ãã¤ã³ãã¯ï¼ã¤ã
ï¼ï¼âï¼ï¼ä¸è¨ï¼è¡ãã³ã¡ã³ãã¢ã¦ãããã¦ããªããã¨ã確èª
LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so
â»ãããã¯ApacheãWebDAVãå©ç¨ããããã«å¿ è¦ãªã¢ã¸ã¥ã¼ã«ã§ããã
WebDAV ãå©ç¨ããï¼mod_davãmod_davfsï¼
http://www.turbolinux.com/products/se...
- WebDAV ã¨ã¯ãHTTP ãããã³ã«ã®æ¡å¼µã§ã¯ã©ã¤ã¢ã³ãããã® Web ãµã¼ãã¼ã®ã³ã³ãã³ãã®ç®¡çãå¯è½ã«ããæ©è½
ï¼ï¼âï¼ï¼ä¸è¨ï¼è¡ã®ã³ã¡ã³ãã¢ã¦ããå¤ã
#LoadModule dav_svn_module modules/mod_dav_svn.so #LoadModule authz_svn_module modules/mod_authz_svn.so
â»ãããã¯WebDAVãSVNã¨é£æºããããã«å¿
è¦ãªã¢ã¸ã¥ã¼ã«ã§ããã
ï¼ï¼âï¼ï¼æ«å°¾ã«ä¸è¨ã®è¨è¿°ã追å
<Location /svn> DAV svn SVNParentPath "D:/svnprojects" </Location>
â»ãããã®ãã£ã¬ã¯ãã£ãã®è©³ç´°ãªæå³ã¯ä¸è¨URLãåç §ã
mod_dav_svn è¨å®ãã£ã¬ã¯ãã£ã
http://www.caldron.jp/~nabetaro/svn/s...
- DAV svn : ããã¯ã¨ã³ãã¨ã㦠Subversion ã使ããã httpd ã«æ示
- SVNParentPath directory-path : ãµããã£ã¬ã¯ããªã Subversion ã®ãªãã¸ããªã«ãªã£ã¦ããã親ãã£ã¬ã¯ããªã®ãã¡ã¤ã«ã·ã¹ãã ä¸ã®ä½ç½®ãæå®
httpd.confãä¿åã
D:\svnprojectsã¨ãããã©ã«ããä½æã
ããããªãã¸ããªDBã®ã«ã¼ãã¨ãã¦ä½¿ãäºã«ããã
XAMPPã³ã³ããã管çè 権éã§å®è¡ãï¼Apacheãåèµ·åãï¼StopâStartï¼
ãã¨ã¯ï¼ãã®
D:\svnprojects
ã¨ãããã©ã«ãã«ï¼æ¬¡ã®ãããªååã®ãã¡ã¤ã«ãç½®ãã¦ãããã
ããã©ã«ãä½æå¾å³ã¯ãªãã¯ãã¦SVNãªãã¸ããªä½æã
ãã®ãã¡ã¤ã«ã®ä¸èº«ã¯ç©ºã§ããã
ãããã¦ããã°ï¼ãã®ãã©ã«ããè¦ãã ãã§ï¼ãã®ãã©ã«ãã®ä½¿ãæ¹ããããã
ã¤ã¾ãï¼ãã©ã«ãã®ããã¥ã¡ã³ããï¼ãã©ã«ãèªèº«ã«çµã¿è¾¼ããã¨ãã§ããã
æé æ¸ã¯ã©ãã ã£ãï¼ä½¿ãæ¹ã¯ã©ããããã ã£ãï¼ã¨æ¢ãã¾ããå¿ è¦ããªãã
ããã対象ç©ã«èª¬æãå¿ è¦ã§ããã°ï¼å¯¾è±¡ç©ãã®ãã®ã«èª¬æãåãè¾¼ãã§ãã¾ããã
ã¨ããçºæ³ã¯ï¼ä½æ¥å¹çåã®ä¸ã§é常ã«å¤§äºã§ããã*1
ï¼ï¼ï¼ãªãã¸ããªã®åä½ãã¹ã
ãã¦ï¼hogeã¨ããããã¸ã§ã¯ãã®ãªãã¸ããªãä½æãããã
D:\svnprojects\hogeã¨ãããã©ã«ããä½æã
ãã®ãã©ã«ãä¸ã§å³ã¯ãªãã¯ï¼Tortoise SVNï¼ããã«ãªãã¸ããªãä½æ
ããªãã¸ããªã®ä½æã«æåãã¾ããããã®ãã¤ã¢ãã°ãåºãã
ãã©ã¦ã¶ããä¸è¨ã®URLã«ã¢ã¯ã»ã¹
http://localhost/svn/hoge/
ãhoge - Revision 0: /ãã¨è¡¨ç¤ºãããã°OKã
ãã§ãã¯ã¢ã¦ãç¨ã®ãã©ã«ãã¨ãã¦ï¼
D:\svnrepos\hogeã¨ãããã©ã«ããä½æã
ãã©ã«ãä¸ã§å³ã¯ãªãã¯ï¼SVN ãã§ãã¯ã¢ã¦ã
ãªãã¸ããªã®URLã«ãhttp://localhost/svn/hogeã
ã§OKãæ¼ä¸ãï¼ãã§ãã¯ã¢ã¦ãå®è¡ã
D:\svnrepos\hogeä¸ã«.svnãçæãããã
D:\svnrepos\hogeä¸ã«é©å½ãªãã©ã«ãã¨ãã¡ã¤ã«ãä½æãï¼SVN追å ã»ã³ãããããã
ãã©ã¦ã¶ä¸ã§
http://localhost/svn/hoge/
ãéãã¨ï¼
ãhoge - Revision 1: /ã
ã¨ãªã£ã¦ããï¼ã³ããããããã©ã«ãã¨ãã¡ã¤ã«ãè¦ããã
ããã§ï¼HTTPçµç±ã§ã®SVNãªãã¸ããªã®å©ç¨ç°å¢ãæ´ã£ãã
ãã ãï¼ãã®æç¹ã§ã¯ãã¹ã¦ã®ã¦ã¼ã¶ãå¿åã§ããï¼èªè¨¼ãããã£ã¦ããªãã
ï¼ï¼ï¼ã¦ã¼ã¶èªè¨¼ã®è¨å®
ã¦ã¼ã¶åã¨ãã¹ã¯ã¼ãã§èªè¨¼ããè ã®ã¿ãï¼ãªãã¸ããªã«ã¢ã¯ã»ã¹ã§ããããã«ããã
D:\xampp\apache\conf\httpd.confãã¨ãã£ã¿ã§ç·¨é
ä¸è¨ã®ããã«ä¿®æ£
<Location /svn> DAV svn SVNParentPath "D:/svnprojects" </Location> â <Location /svn> DAV svn SVNParentPath "D:/svnprojects" AuthType Basic AuthName "Subversion repository" AuthUserFile "D:/svnprojects/svnpasswd" Require valid-user </Location>
httpd.confãä¿åã
ã³ãã³ãããã³ããã管çè
権éã§éãã
ä¸è¨ã®ã³ãã³ããå®è¡ã
C:\Windows\system32>cd /d D:\svnprojects D:\svnprojects>D:\xampp\apache\bin\htpasswd -c svnpasswd user1 Automatically using MD5 format. New password: ***** Re-type new password: ***** Adding password for user user1 D:\svnprojects>D:\xampp\apache\bin\htpasswd svnpasswd user2 Automatically using MD5 format. New password: ***** Re-type new password: ***** Adding password for user user2
user1ã«å¯¾ãã¦pass1,
user2ã«å¯¾ãã¦pass2 ã¨ãããã¹ã¯ã¼ããããããè¨å®ããã
ãã®æç¹ã§ï¼ãã¹ã¯ã¼ããã¡ã¤ã«ã¨ãã¦
D:\svnprojects\svnpasswd
ãçæããã¦ããï¼ä¸èº«ã¯ä¸è¨ã®ããã«æå·åããã¦ããã
user1:$apr1$KAF7njb.$.4KgKs.XovhFYqNTnrmkT0 user2:$apr1$6v83JS1s$mdoJnyPJFFO4JafSTQxnX/
XAMPPã³ã³ããã管çè
権éã§å®è¡ãï¼Apacheãåèµ·åï¼StopâStartï¼
ãã®æç¹ã§ï¼SVNãªãã¸ããªã«å¯¾ããã¦ã¼ã¶èªè¨¼ãæå¹ã«ãªãã
試ãã«ï¼hogeããã¸ã§ã¯ãä¸ã®ãã¡ã¤ã«ã«å¤æ´ãå ãã¦ã³ããããããã¨ããã¨ï¼
ãã¦ã¼ã¶åã¨ãã¹ã¯ã¼ããè¦æ±ã
ã®ãã¤ã¢ãã°ã表示ãããã
user1/pass1ã§ãèªè¨¼ãä¿åããã¦OKãæ¼ä¸ããã°ï¼ã³ãããå®äºã
åèï¼
[Windows]Apache2.2 + Subversion èªè¨¼ã使ã£ãã¢ã¯ã»ã¹
http://halu834.blog17.fc2.com/blog-en...
Apacheã«ããWebãµã¼ãæ§ç¯ / ã¦ã¼ã¶ã¼èªè¨¼ã«ããã¢ã¯ã»ã¹å¶éï¼ãã¼ã·ãã¯èªè¨¼ç·¨ï¼
http://www.atmarkit.co.jp/flinux/rens...
- htpasswdã¦ã¼ãã£ãªãã£ã®ä½¿ãæ¹
â»ãªãï¼ä¸çæ¸å½ svnserve.conf ãªã©ã®è¨å®ãã¡ã¤ã«ãç·¨éãã¦ãï¼Apacheçµç±ã§ã®ã¢ã¯ã»ã¹ã«ã¯åæ ãããªãã
svnserver.confã®è¨å®ã¡ã¢
http://www.glamenv-septzen.net/view/390
- svnserve.conf ã¯ãsvnserveã«ãã svn:// çµç±ã§ã®ã¢ã¯ã»ã¹ã§ä½¿ãããè¨å®ãã¡ã¤ã«
Subversionã§ã¦ã¼ã¶ã¼èªè¨¼
http://www.bnote.net/linux/subversion...
- password-dbãç·¨é
ãã©ãã«ã·ã¥ã¼ã
ä½æããã¯ãã®ãªãã¸ããªã«ã¢ã¯ã»ã¹ã§ããªã
ãã©ã¦ã¶ããã¢ã¯ã»ã¹ããã¨ï¼
ãCould not open the requested SVN filesystemã
ã¨è¡¨ç¤ºãããå ´åãããã
Apacheã®ã¨ã©ã¼ãã°ï¼D:\xampp\apache\logs\error.logï¼ã«ã¯ä¸è¨ã®ããã«è¡¨ç¤ºãããã
[Sat Jul 23 15:37:38 2011] [error] [client 127.0.0.1] (20014)Internal error: Can't open file 'D:\\svnprojects\\hoge\\format': \xe6\x8c\x87\xe5\xae\x9a\xe3\x81\x95\xe3\x82\x8c\xe3\x81\x9f\xe3\x83\x91\xe3\x82\xb9\xe3\x81\x8c\xe8\xa6\x8b\xe3\x81\xa4\xe3\x81\x8b\xe3\x82\x8a\xe3\x81\xbe\xe3\x81\x9b\xe3\x82\x93\xe3\x80\x82
[Sat Jul 23 15:37:38 2011] [error] [client 127.0.0.1] Could not fetch resource information. [500, #0]
[Sat Jul 23 15:37:38 2011] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #720003]
[Sat Jul 23 15:37:38 2011] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #720003]
ãã°å 容ã¯ãD:\svnprojects\hoge\formatãè¦ã¤ãããªããã¨ãããã®ã
httpd.confå
ã®SVNParentPathã§æå®ãã¦ããSVNãã©ã«ããã¹ãï¼å®éã®ãªãã¸ããªã®ãã¹ã¨ç°ãªã£ã¦ããå ´åã«çºçããã
ãã©ã«ãã®ãã¹ã®è¨å®ãè¦ç´ããã¨ã
ãªãï¼åæ§ã®ã¨ã©ã¼ãåºãåå ã¯è²ã ããã
SELinuxã«ããPermission deniedã¨ãªãã±ã¼ã¹
http://d.hatena.ne.jp/morilab/2008091...
BerkeleyDBã§ã¯ãªãfsfsã§ãªãã¸ããªãä½ãã°è§£æ±ºããã±ã¼ã¹
http://nyanthem.net/?p=69
Subversionã®Apacheã¢ã¸ã¥ã¼ã«ããªã³ã¯ãã¦ããSQLiteã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ã«ç¸éãããå ´å
http://l-w-i.net/t/subversion/dav_100...
è£è¶³ï¼
ããï¼Eclipseä¸ã®æ¢åã®ããã¸ã§ã¯ãããä»å¾ï¼SVNã§ç®¡çããããã¨æã£ããï¼
次ã®æé ãè¸ãã
ã¾ãï¼fuga_javaã¨ããSVNããã¸ã§ã¯ãã®ãªãã¸ããªãä½æã
D:\svnprojects\fuga_javaã¨ãããã©ã«ããä½æã
ãã®ãã©ã«ãä¸ã§å³ã¯ãªãã¯ï¼Tortoise SVNï¼ããã«ãªãã¸ããªãä½æ
ããªãã¸ããªã®ä½æã«æåãã¾ããããã®ãã¤ã¢ãã°ãåºãã
次ã«ï¼Eclipseä¸ã§Javaããã¸ã§ã¯ããSVNãªãã¸ããªã«ç»é²ããã
Javaããã¸ã§ã¯ããããã±ã¼ã¸ã»ã¨ã¯ã¹ããã¼ã©ã§å³ã¯ãªãã¯ï¼ãã¼ã ï¼ããã¸ã§ã¯ãã®å
±ç¨
ã§ï¼ãªãã¸ããªã¼ã»ã¿ã¤ãã¨ãã¦SVNãé¸æã
ãªãã¸ããªã¼ã»ãã±ã¼ã·ã§ã³ã¨ãã¦ï¼ä¸è¨ã®URLãå
¥åã
http://localhost/svn/fuga_java/
ãã¨ã¯ã³ããããã°ãªã©ãè¨å ¥ããã ãã§ï¼Eclipseããããã¸ã§ã¯ãå ã®å ¨ã½ã¼ã¹ãã³ããããããã
次å以éã¯ï¼ããã±ã¼ã¸ã»ã¨ã¯ã¹ããã¼ã©ä¸ã§
対象ãã¡ã¤ã«ããã©ã«ããå³ã¯ãªãã¯ï¼ãã¼ã ï¼æ´æ°ã»ã³ããã
ãªã©ã®æä½ãããã°ï¼Eclipseä¸ã§ãTortoise SVNã¨åãè¦é ã§ãã£ã¦ãããã
Eclipse à Subversive
http://www.baldanders.info/spiegel/lo...
Eclipse ä¸ã§æ¢åã®ããã¸ã§ã¯ãããªãã¸ããªã«ç»é²ããã«ã¯ï¼ããã¸ã§ã¯ãã®ã³ã³ããã¹ãã¡ãã¥ã¼ããããã¼ã ãâãããã¸ã§ã¯ãã®å ±ç¨ãã¨é²ãã
ã§ï¼ãã±ã¼ã·ã§ã³æ å ±ãè¨å®ãããã¸ã§ã¯ãã»ãªãã¸ããªã»ã¬ã¤ã¢ã¦ãã«é²ã
è£è¶³ï¼
ãã±ãã管çï¼éçºè éã®ã³ãã¥ãã±ã¼ã·ã§ã³ããããå ´åã¯ï¼All-In-One-Tracã使ãã®ãããã ããã
ã½ããã¦ã¨ã¢ãä½ãç°å¢ã楽ããããããªã¼ã½ãã Trac/All-In-One-Trac
http://itpro.nikkeibp.co.jp/article/C...
ã
*1:詳ããã¯ãå®è¡å¯è½ããã¥ã¡ã³ããã«ã¤ãã¦èª¿æ»ã®ãã¨ã