美文网首页
window下SVN工程目录与网站目录同步

window下SVN工程目录与网站目录同步

作者: 行走的IDE | 来源:发表于2017-03-16 19:27 被阅读0次

    1.找到SVN server对应的Repositories目录,然后点击需要同步的工程如test,打开test工程下的hooks文件夹,增加post-commit和post-commit-run两个bat文件

    注:(1)post-commit.bat:

    call %~dp0post-commit-run.bat %* > %1/hooks/post-commit.log 2>&1

    (2) post-commit-run.bat:

    echo on

    SET REPOS=%1

    SET USER=%2

    SET SVN="D:\Program Files (x86)\VisualSVN Server\bin\svn.exe"

    SET DIR="www网站目录\test"  (call %SVN% update %DIR% --username 填入用户名 --password 填入用户密码 --non-interactive)

    用户名密码必须是svn登陆的账户

    2.设置windows服务中visualSVN server中的登陆名为管理员账户,重启visualSVN server服务

    3.网站目录下必须存在通过客户端迁出地test的工程

    相关文章

      网友评论

          本文标题:window下SVN工程目录与网站目录同步

          本文链接:https://www.haomeiwen.com/subject/vnijnttx.html