SVN源码自动发布至WEB目录
一、cd /code/svndata/svn/hook,创建post-commit文件,内容如 :
#!/bin/sh#/bin/bashREPOS="$1"REV="$2"export LANG=en_US.UTF-8CURDATE=`date`echo "Code Deployed By at $CURDATE" >> /var/www/html/BidInChina/code_deploy_log/usr/bin/svn update --username lanhai --password xxx [color=red]--no-auth-cache[/color] /var/www/html/BidInChina/www >> /var/www/html/BidInChina/code_deploy_log
svn checkout http://IP/svn/BidInChina/www BidInChina/www /var/www/html/BidInChina
chown -R apache:apache /var/www/html/BidInChina