1 Star 12 Fork 5

congz666 / cmall-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fabfile.py.example 596 Bytes
一键复制 编辑 原始数据 按行查看 历史
congz666 提交于 2020-06-14 23:22 . 第一次提交
from fabric import Connection, task
@task
def deploy(c):
with Connection('root@x.x.x.x') as c:
c.run("rm -rf cmall")
c.run("git clone https://github.com/bydmm/cmall.git", pty=True)
c.put("docker-compose.yml", "cmall/docker-compose.yml")
c.run("cd cmall && docker-compose build && docker-compose rm -fsv && docker-compose up --build -d", pty=True)
c.run("sleep 15 && docker logs -f gili-api")
# doc http://docs.fabfile.org/en/2.5/getting-started.html
# apt install python-pip
# pip install fabric -i http://mirrors.aliyun.com/pypi/simple/
# fab deploy
Go
1
https://gitee.com/congz666/cmall-go.git
git@gitee.com:congz666/cmall-go.git
congz666
cmall-go
cmall-go
master

搜索帮助