walle-web icon indicating copy to clipboard operation
walle-web copied to clipboard

复制项目.tar文件到目标服务器不是22端口 BUG

Open jorshxp opened this issue 5 years ago • 1 comments

问题描述 复制项目.tar文件到目标服务器不是22端口

问题描述 复制项目.tar文件到目标服务器不是22端口

解决方案 walle-web/walle/service/deploye.py 大约243行

        # TODO md5
        # 传送到版本库 release
        result = waller.put(self.local_codebase + self.release_version_tar,
                            remote=self.project_info['target_releases'], wenv=self.config())

修改为

        command = 'scp -P%s %s %s@%s:%s' % (waller.port, self.local_codebase + self.release_version_tar, 
                waller.user,
                waller.host,
                self.project_info['target_releases'])
        result = self.localhost.local(command, wenv=self.config())
        current_app.logger.info('command: %s', dir(result))

jorshxp avatar Jul 22 '19 03:07 jorshxp

同样遇到此问题,感觉前辈们!

xiangzhanyou avatar May 09 '20 06:05 xiangzhanyou