Code process for automatic deployment and submission to SVN in UbuntuServer: Step 1: 1.1 install Samba Server 1.2 Mount NTFS partition: sudomount-tntfs/dev/sdb1/media/sharestep2: 2.1 install SVN server 2.2 install cifs-tools: sudoapt-getinstallcifs-tools2.2 remote mounting
How to automatically deploy and submit code to SVN in Ubuntu Server:
Step 1:
1.1 install the Samba server
1.2 mount NTFS partitions: sudo mount-t ntfs/dev/sdb1/media/share
Step 2:
2.1 install the SVN Server
2.2 install cifs-tools: sudo apt-get install cifs-tools
2.2 remote mount Samba partition: sudo mount-t cifs http: // 10.10.9.124/share
Step 3:
3.1 configure svn HOOK: post-commit --> sync-web.sh:
Cd/media/share/code3
Sudo svn update
3.2 checkout: sudo svn co file: // home/svn/myproject/media/share/code3
3.2 hook permission adjustment: sudo chmod 777/home/svn/myproject/hooks/post-commit
3.4 add svn permissions to the root user
3.5 add www-data ALL: nopassword all to/etc/sudoers
Step 4:
4.1 point the virtual path of each WebServer IIS to samba code3
4.2 Test
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2