SVN automatically submits web app code

Source: Internet
Author: User
Tags svn update

Create a project library catalog

Svnadmin Created/svn/newsem

Verify the SVN user and authorize

[[email protected] newsem]# ls

CONF DAV db format hooks locks README.txt

[Email protected] newsem]# pwd

/svn/newsem

editing files in the Conf directory

Authz passwd svnserve.conf

svnserver.conf modification

Anon-access = None

auth-access = Write

password-db = passwd------Password Verification

authz-db = Authz----------User Login Verification

Edit passwd

[Users]

# Harry = Harryssecret

# sally = Sallyssecret

admin = Admin

Edit Authz

[Groups]

# harry_and_sally = harry,sally

admin = Admin

[newsem:/]

@admin = Rw1

Checkout files to a local directory
SVN checkout Path (path is a directory on the server)
SVN Co--username=admin--password=admin Svn://192.168.10.222/newsem/home/web/newsem

Windows installation clinet authentication

Online a lot of yourself looking for

Ok

Auto-submit App Web

Create the file

[Email protected] newsem]# CD hooks/

[Email protected] hooks]# pwd

/svn/newsem/hooks

[email protected] hooks]# LL

-rwxrwxrwx 1 root root 209 August 14:40 Post-commit

Modify it

#!/bin/sh

#exec >/tmp/svn-up.out 2>&1

Repos= "$"

rev= "$"

Svnlog=/svn/svn.log

Web=/home/web/newsem

Export Lang=en_us. UTF-8

/USR/LOCAL/BIN/SVN update $WEB--username admin--password admin--non-interactive

Granting Permissions chmod 777

Windows verifies whether the synchronization





SVN automatically submits web app code

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.