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