svn提交同步网站
#检出最新版本
# mkdir -p /var/www/project1
# cd /var/www/project1
# svn checkout http://10.8.8.68/svn/project1/trunk/
# cd /var/www
# chown -R www.www project1
#设定svn hooks
# cd /home/svn/repo/hooks
# vi post-commit
#输入以下内容
#!/bin/sh
/usr/local/subversion/bin/svn update /var/www/project1/trunk --username=dev01 --password=dev01 --no-auth-cache --non-interactive > /dev/null
:wq
# chown www.www post-commit
# chmod 777 post-commit
# service httpd restart
#修复提交时报sqlite read only错误
# chmod g+w /home/svn/repo/db/rep-cache.db
#设置完成