build(biji-houdaun): 配置生产环境并优化构建流程
- 新增 production环境配置文件 application-prod.yml - 更新 Dockerfile,设置生产环境变量 - 为 Knife4j 配置添加环境限制,仅在非生产环境激活 - 在 pom.xml 中添加开发和生产环境配置 - 更新编译打包命令文档,增加生产环境构建指令
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
## 忽略测试用例
|
||||
`mvn clean package -D maven.test.skip=true -am docker:build`
|
||||
## 忽略测试用例,指定环境
|
||||
`mvn clean package -P prod -D maven.test.skip=true -am docker:build`
|
||||
|
||||
# 在dockerfile中已经设置好了启动哪个配置文件
|
||||
ENV SPRING_PROFILES_ACTIVE=test \
|
||||
|
||||
Reference in New Issue
Block a user