Code for automatic deployment and submission to SVN in UbuntuServer

Source: Internet
Author: User
Tags svn update
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.