Linux Apache Subversion,svn与web目录同步

httpd.conf

<Location /svn>
    DAV svn
    SVNListParentPath on
    SVNParentPath /var/svn_root
    AuthType Basic
    AuthName “Dev Subversion”
    AuthUserFile /var/svn_root/passwd
    Require valid-user
</Location>

————————————分割线————————————

svn checkout –username $username –password $password svn://127.0.0.1/freers /var/www/svn_webroot/

————————————分割线————————————

/var/svn_root/freers/hooks/post-commit

svn update /var/www/svn_webroot –username yangxianchao –password password

发表评论

电子邮件地址不会被公开。 必填项已用*标注