svn自动同步更新到网站服务器

windows:

svndata/repos1/hooks/post-commit.bat

@echo off
"C:\svn\bin\svn.exe"  update "c:\htdocs\project" --quiet  --username ****** --password ******

Linux:

svndata/repos1/hooks/post-

#!/bin/sh
#export LANG=zh_CN.UTF-8
export LANG=en_US.UTF-8
svn up --username=wlx --password=wlx --no-auth-cache --non-interactive /var/www/union > /dev/null

猜你喜欢

转载自hnlixf.iteye.com/blog/2146076