ติดตั้ง svn server

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

Code:
c:\>mkdir c:\svn-repos
c:\>svnadmin create c:\svn-repos
3. import โปรเจ็คของเราลงไป

Code:
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 โดยใช้คำสั่ง

Code:
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 ให้เพิ่มบรรทัดนี้ลงไป

Code:
anon-access = write

Download SVN-Server, SVN-Service and TortoriesSVN

**Hidden Content: To see this hidden content your post count must be 2 or greater.**