[TOC]
使用说明
git clone https://github.com/youken9980/shell.git
cd shell
ln -snf *.sh ~/.
克隆所有工程。 使用方法:
克隆后台开发1个架构项目、3个网关项目、13个微服务项目
cloneCdiProject.sh
克隆前端开发3个页面项目
cloneCdiProject.sh frontpage
生成所有工程对应的docker命令。 使用方法:
generateCdiDockerRun.sh
生成所有工程对应的批处理命令,在Windows系统当前用户桌面的command目录。 使用方法:
generateCommand.sh
抽取各网关、微服务proto文件中所有Service类,供后台开发同学直连调试使用。 使用方法:
generateResolveProperties.sh
编译并上传Framework中所有API项目到中央库。 使用方法:
grepDeployTxt.sh
编译所有工程。 使用方法:
grepCompileTxt.sh
删除.iml
文件、删除.idea
目录、删除target
目录,编译网关及微服务工程。
使用方法:
prepareCdiProject.sh
替换三个页面工程所有html文件里js的版本,使浏览器主动读取修改后的js,防止加载缓存。 使用方法:
sedFrontpage.sh
将PlatformUserServiceImpl.java中的@CeresReference(domain = "cn.enncloud.ceres.base")注释掉。 使用方法:
sedPlatformUserService.sh
启动所有微服务工程,使用kill命令或stopCDIBackend.sh终止。 使用方法:
startCDIService.sh
启动所有网关工程,使用kill命令或stopCDIBackend.sh终止。 使用方法:
startCDIGateway.sh
启动所有页面工程,control + c终止。 使用方法:
startCDIFrontpage.sh
终止微服务和网关工程。 使用方法:
stopCDIBackend.sh
更新版本号,MacOS版本。 使用方法:
updateFrameworkVersion.sh
更新版本号,Windows版本。 使用方法:
updateFrameworkVersion_windows.sh
批处理命令,对当前目录下所有子目录,执行命令列表。 使用方法:
batch.sh [frontpage|gateway|service] <'command1'> ['command2'] ['command3'] ...
批处理命令,对脚本中指定的子目录,执行命令列表。 使用方法:
batchList.sh <'command1'> ['command2'] ['command3'] ...
清理maven生成的lastupdated文件。 使用方法:
cleanLastUpdated.sh
清理无效分支,并压缩历史信息。
git pull --rebase
git remote prune origin
git gc --prune=now
使用方法:
gitPullAllBranch.sh
更新当前Git库的所有分支。 使用方法:
gitPullAllBranch.sh
mvn命令的简便格式,其中默认已含mvn clean -Dmaven.test.skip=true -U
。
使用方法:
mvn.sh [clean|compile|package|install|deploy|spring-boot:run|jetty:run|docker:build]
~/mvn.sh jetty:run
。
使用方法:
jettyrun.sh
~/mvn.sh spring-boot:run
。
使用方法:
springbootrun.sh
列印本地所有docker镜像,格式 Image:Tag,便于复制粘贴。 使用方法:
dockerlsimg.sh
保存本地所有镜像到当前目录下的tar目录。 使用方法:
dockersave.sh
更新本地所有镜像。 使用方法:
dockerupdate.sh
停止并删除本地所有Tag为<none>的镜像。 使用方法:
dockerrminone.sh
停止并删除本地所有运行中的docker容器。 使用方法:
dockerrmall.sh