Git-批量上线脚本

  1. online.sh
  2. demo.list

online.sh

上线执行的脚本

#!/bin/sh
pssh -h ./demo.list -l root -P "cd /xxx/xxx/demo && git pull"

demo.list

该文件下指的是上线哪些服务器的列表

root@xxxx.xx.xx.01
root@xxxx.xx.xx.02
root@xxxx.xx.xx.03
root@xxxx.xx.xx.04

转载请注明来源,欢迎指出任何有错误或不够清晰的表达。

文章标题:Git-批量上线脚本

文章字数:67

本文作者:猿码记

发布时间:2017-05-21 19:44

原始链接:liuqh.icu/2017/05/21/git批量上线脚本/

版权声明: 转载请保留原文链接及作者。

目录
×

看您心情~~