1 Star 0 Fork 51

dongfang/MTBSystem

forked from 稀饭下雪/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/401429542/MTBSystem.git
git@gitee.com:401429542/MTBSystem.git
401429542
MTBSystem
MTBSystem
master

搜索帮助