31 Star 119 Fork 47

稀饭下雪 / MTBSystem

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build_local.sh 764 Bytes
一键复制 编辑 原始数据 按行查看 历史
稀饭下雪 提交于 2018-02-06 16:41 . add
#!/bin/bash
ProjectName="mtbsystem"
if [ $1 == "all" ]; then
for srv in `ls src`; do
if [[ ${srv:0-4} == "-srv" ]]; then
if [[ ${srv} != "api-srv" ]]; then
echo "开始更新$srv"
GOROOT=/data/services/go GOBIN=/data/goapp/$ProjectName/bin GOPATH=`pwd`:`pwd`/vendor /data/services/go/bin/go install $srv && sudo supervisorctl restart $srv:*
fi
fi
done
else
for srv in "$@"
do
if [[ "${srv:0-4}" != "-srv" ]]; then
srv="${srv}-srv"
fi
echo "开始更新$srv"
GOROOT=/data/services/go GOBIN=/data/goapp/$ProjectName/bin GOPATH=`pwd`:`pwd`/vendor /data/services/go/bin/go install $srv && sudo supervisorctl restart $srv:*
done
fi
Go
1
https://gitee.com/xi_fan/MTBSystem.git
git@gitee.com:xi_fan/MTBSystem.git
xi_fan
MTBSystem
MTBSystem
master

搜索帮助