|
|
il y a 1 mois | |
|---|---|---|
| agent | il y a 1 mois | |
| bin | il y a 1 mois | |
| common | il y a 1 mois | |
| mgr | il y a 1 mois | |
| zzz | il y a 1 mois | |
| .gitignore | il y a 5 mois | |
| README.md | il y a 1 mois | |
| pom.xml | il y a 1 mois |
freemarker 模板来自这个项目 master 分支的 da0aec93 版本
devops 项目模块:
cd ~/Downloads
git clone https://git.reghao.cn/reghao/devops.git
cd ~/Downloads/devops/zzz
bash db_init.sh
执行 db_init.sh 会自动创建 devops 项目需要的数据库并初始化数据库表
需要自行指定 db_init.sh 脚本中的 host, username, password 等变量值
cd ~/Downloads/devops/zzz
bash build_jar.sh
执行 db_init.sh 会自动构建并运行 devopsweb 应用 jar 包
build_jar.sh 脚本中的 proj_dir 变量默认是 ~/Downloads/devops
mvn 构建默认使用 dev 环境, 所以需要修改 web 模块 resources/application-dev.yml 配置文件中的第三方服务配置
运行 devopsweb 应用前需要根据环境修改 devops/web/bin/devopsweb.yml 文件中的配置
mysql 配置
运行应用
执行 devops/web/bin/start.sh 脚本
使用 devopsweb.yml 外部配置文件
执行 devops/web/bin/start1.sh 脚本
根据 mvn 打包选择的 profile, 使用 resources/application-dev.yml 或 resources/application-test.yml 内部配置文件
cd ~/Downloads/devops/web/bin
bash shutdown.sh
执行 shutdown.sh 会结束 devopsweb 应用