【执行Deploy.sh脚本,网站能更新 】 | IT修真院·坑乎
问题已收录 执行Deploy.sh脚本,网站能更新
我也踩过这个坑( 2 )
已统计您的踩坑,无需重复点击
回答(1)
详细描述
截图
代码
编辑于2024-04-20
  • [西安|结业弟子]JAVA-李龙
    0


    脚本内容:

    #!/bin/bash

    #2018.4.16

    echo Hi welcome to lilong

    echo 现在在同步网站的数据,请耐心等待

    cd /data/svnrepos

    /usr/bin/svn update /data/svnrepos   . --username aiqingcheng --password aiqingchen

    echo 网站的数据已经同步成功,执行命令的时间是在”$date”

    结果:

    Hi welcome to lilong

    现在在同步网站的数据,请耐心等待

    Updating '.':

    Authentication realm:/var/svn/svnrepos

    Username: root^H^H^H

    Password for 'r': 

    Authentication realm:/var/svn/svnrepos

    Username: aiqingcheng

    Password for 'aiqingcheng': 

    -----------------------------------------------------------------------

    ATTENTION!  Your password for authentication realm:

       /var/svn/svnrepos

    can only be stored to disk unencrypted!  You are advised to configure

    your system so that Subversion can store passwords encrypted, if

    possible.  See the documentation for details.

    You can avoid future appearances of this warning by setting the value

    of the 'store-plaintext-passwords' option to either 'yes' or 'no' in

    '/root/.subversion/servers'.

    -----------------------------------------------------------------------

    Store password unencrypted (yes/no)? yes

    At revision 44.

    Updating '.':

    At revision 44.

    Summary of updates:

      Updated '.' to r44.

      Updated '.' to r44.

    网站的数据已经同步成功,执行命令的时间是在””

    解决方法:

     如果是前端的一些html页面自动更新的话,只要这个脚本定时执行就是一种解决方法,

    或者写一个简单的helloworld的html页面,修改的时候加一行字不就可以很清楚地看到修改是否成功了

    编辑于2018-05-10