SVN + website server synchronously updated

Source: Internet
Author: User
SVN + the website server synchronously updates the tmp file to save the update records and go to the hooks directory to copy the post-committmpl file. the new file name is post-commit and does not require a suffix. Open the file, comment out all content in the file, add the following content [html] exportLANG = zh_CNUTF-8 SVN + site server Sync update add tmp to save the update record into the hooks directory copy post-commit.tmpl file, the new file name is post-commit without a suffix. Open the file, comment out all the content in the file, and add the following content [html] export LANG = zh_CN.UTF-8 REPOS = "$1" REV = "$2" SVN_PATH = svn: // 172.246.164.41/yiicms WEB_PATH =/www/web/yiicms/public_html LOG_PATH =/www/svn/storage/tmp/svn_update.log echo "\ n ##### ##### start commit "'date" + % Y-% m-% d % H: % M: % S "'' ###################'> $ LOG_PATH echo 'whoam', $ REPOS, $ REV> $ LOG_PATH svn update/www/web/yiicms/public_html/$ SVN_PATH update -- username dreamzml -- password 421126 $ WEB_PATH -- no-auth-cache> $ LOG_PATH chown- R www: www $ WEB_PATH # mailer. py commit "$ REPOS" "$ REV"/path/to/mailer. conf

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.