温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

SVN实践

发布时间:2020-07-19 09:42:37 来源:网络 阅读:416 作者:dfwasds 栏目:开发技术

一.SVN安装

    yum install subversion

二.SVN创建版本库

    mkdir -p /opt/svn/repos

    svnadmin create /opt/svn/repost

         三.SVN修改配置(配置项之前不存在空格)

    1.vi /opt/svn/repos/conf/authz

    [/]

    acong = rw

    2. vi /opt/svn/repos/conf/passwd

    [user]

    acong = 123456

    3. vi /opt/svn/repos/svnserve.conf

    [general]

     anon-access = none

    auth-access = write


    password-db = passwd

    authz-db = authz

    realm = /opt/svn/repos

    

二.SVN启动关闭

    svnserve -d -r /opt/svn/repos

    netstat -ln | grep 3690

    ps -ax | grep svnserve

    

    killall svnserve

    kill -9 pid

三.测试账号

    svn co http://192.168.129/dev

四.SVN导入初始代码

    find . -type d -name ".svn"|xargs rm -rf

    svn import /data/dev/ file:///opt/svn/repos/ -m "init information" 

五.钩子自动部署

    在web目录检出代码

    vi /opt/svn/repos/hooks/post-commit

    

     export LANG=zh_CN.UTF-8

     SVN=/usr/bin/svn

     WEB=/data/dev/

     $SVN update $WEB --username uname --password password

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI