PDA

View Full Version : How to installs and config Subversion server on windows (svn)



maxma
13-05-2008, 08:19 AM
ติดตั้ง svn server

1. เริ่มจาก ติดตั้ง svn win32 ลงไปก่อน (set variables path ให้เรียบร้อยนะคับ เช่น C:\svn\bin;)
2. สร้าง repository สำหรับเก็บข้อมูลโปรเจ็คที่เราทำงานร่วมกัน



c:\>mkdir c:\svn-repos
c:\>svnadmin create c:\svn-repos


3. import โปรเจ็คของเราลงไป



c:\>Project\Application>svn import -m “importing Application” file:///c:/svn-repos/Application/trunk


4. ตอนนี้เราสามารถ check out source code เราได้ด้วย link : file:///c:/svn-repos/Application/trunk

ติดตั้ง service svn เพิ่อให้สามารถ check out จากภายนอกได้

5. Download svnservice มา และนำไฟล์ SVNService.exe ไปไว้ใน Directory bin ของ svn เช่น C:\svn\bin
6. ติดตั้ง service โดยใช้คำสั่ง



c:\>svnservice -install --daemon --root "c:\svn-repos"
c:\>sc config svnservice start= auto
c:\>net start svnservice


7. เราสามารถ check out source code ได้ด้วย link: svn://localhost/Application/trunk

config ให้สามารถ commit หรือแก้ไข source code จากภายนอกได้

8. ที่ Directory C:\svn-repos\conf ไฟล์ svnserve.conf ให้เพิ่มบรรทัดนี้ลงไป



anon-access = write



Download SVN-Server, SVN-Service and TortoriesSVN

**Hidden Content: Check the thread to see hidden data.**