post-commit(利用SVN的钩子post-commit同步测试服务器代码)
-
/snv仓库目录/hooks
-
-
cp post-commit.tmpl post-commit
-
chown apache.apache post-commit
-
-
修改post-commint
-
-
export LANG="en_US.UTF-8"
-
svn up /var/www/html/ben/
-
chmod a+x post-commit
-
-
chown -R apache.apache /web目录(确保web目录能访问,否则post-commit不会正常工作)
阅读(2105) | 评论(0) | 转发(0) |