fabfile.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:djdeploy 作者: ntuwang 项目源码 文件源码
def rsyncd(self, local_dest, remote_dest):
        local(
            "rsync --progress --delete -avzq --rsh=\"sshpass -p {ssh_pass} ssh -p 22 \" "
            "--exclude='assets/sass' --exclude='assets/js/app' "
            "--exclude='scripts' --exclude='node-modules' --exclude='WEB-INF' "
            "{local_dest}/ {ssh_user}@{ssh_host}:{remote_dest}".format(
                local_dest=local_dest,
                remote_dest=remote_dest,
                ssh_user=env.user,
                ssh_host=env.hosts,
                ssh_pass=env.password))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号