feat: 完善部署脚本

This commit is contained in:
ah--desktop
2026-07-08 23:44:05 +08:00
parent 8af2e9194b
commit 8aee7f407d
16 changed files with 325 additions and 109 deletions
@@ -1,5 +1,8 @@
# 开发环境(本地默认 profile)
server:
port: 8080
spring:
datasource:
url: jdbc:mysql://192.168.3.100:3306/ecom_dmb_dev?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
@@ -43,6 +46,6 @@ ecom:
logging:
level:
top.xyquan.ecomdmbbackend: DEBUG
top.xyquan.ecomdmbbackend: INFO
org.springframework.security: INFO
org.springframework.web: INFO
@@ -1,5 +1,8 @@
# 预发布环境(与生产配置接近,用于上线前验证)
server:
port: 8102
spring:
datasource:
url: jdbc:mysql://192.168.3.100:3306/ecom_dmb_staging?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
@@ -1,5 +1,8 @@
# 生产环境
server:
port: 8103
spring:
datasource:
url: jdbc:mysql://192.168.3.100:3306/ecom_dmb?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
@@ -1,5 +1,8 @@
# 测试环境(CI / 集成测试)
server:
port: 8101
spring:
datasource:
url: jdbc:mysql://192.168.3.100:3306/ecom_dmb_test?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
@@ -1,9 +1,6 @@
# 公共配置;环境差异见 application-{profile}.yml
# 激活方式:--spring.profiles.active=dev|test|staging|prod
server:
port: 8080
spring:
profiles:
active: dev