今天在linux上搭建了一个svn,想着本地开发好提交就能通过svn的钩子同步更新到web的目录下。现在遇到问题:
提交代码的时候没有报错,但是并没有成功同步到web目录下。
post-commit 配置
#!/bin/sh
REPOS="$1"
REV="$2"
TXN_NAME="$3"
"$REPOS"/hooks/mailer.py commit "$REPOS" $REV "$REPOS"/mailer.conf
export LANG=en_US.UTF-8
SVN=/usr/bin/svn
WEB=/home/wwwroot/lamp/domain/weixin/web/
$SVN update $WEB –username root–password root --no-auth-cache
chown -R www:www $WEB