Automatically update the Web server with hooks after SVN commits

Source: Internet
Author: User
Tags svn update

#!/bin/sh
repos= "$1″ #版本库
rev= "$2″ #版本号
#export Lc_all=c
#export LANG=ZH_CN. UTF-8
Export Lang=en_us. utf-8# Character Set
Web=/data/www/default/test#web Site Physical Address
SVN=/USR/BIN/SVN#SVN Command Address
log_path=/home/svn/svn.log# log file Address
echo ' Date ' +%y-%m-%d%h:%m:%s ' >> $LOG _path# output date to log file
echo $REPOS $REV ' WhoAmI ' >> $LOG _path# output version number and version library to the log file
SVN update/data/www/default/blog–username root–password 123 >> $LOG _path# Update Web server code

Tried many times before, error, set the Linux server character set, winscp character set to En_us.utf-8

Automatically update the Web server with hooks after SVN commits

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.