Parcourir la source

更新数据库配置,修改主机地址和用户凭证

caipin il y a 3 mois
Parent
commit
d44276dc43
5 fichiers modifiés avec 9 ajouts et 23 suppressions
  1. 1 1
      conf/db.go
  2. 0 7
      deployment/cm.sh
  3. 1 8
      deployment/cm_uat.sh
  4. 4 4
      web/config-pro.yaml
  5. 3 3
      web/config-uat.yaml

+ 1 - 1
conf/db.go

@@ -48,7 +48,7 @@ var DbMasterList = []DbConfig{
 		IsRunning: true,
 	},
 	{
-		Host:      "39.108.111.147",
+		Host:      "8.135.240.149",
 		Port:      3306,
 		User:      "zongheng",
 		Pwd:       "@)!(smartcost#*%)",

+ 0 - 7
deployment/cm.sh

@@ -10,14 +10,7 @@
 # 	        registry.cn-shenzhen.aliyuncs.com/construction_management/construction_management:latest
 
 docker stop construction_management
-
 docker rm construction_management
-
 docker rmi registry.cn-shenzhen.aliyuncs.com/construction_management/construction_management
-
-
-
 docker pull registry.cn-shenzhen.aliyuncs.com/construction_management/construction_management:latest 
-
-
 docker run  --name construction_management --env DEBUG=$1 -v /etc/localtime:/etc/localtime -p 2020:6060 -d --restart always registry.cn-shenzhen.aliyuncs.com/construction_management/construction_management:latest

+ 1 - 8
deployment/cm_uat.sh

@@ -11,14 +11,7 @@
 
 # 
 docker stop construction_management_uat
-
 docker rm construction_management_uat
-
 docker rmi registry.cn-shenzhen.aliyuncs.com/construction_management/construction_management:latest
-
-
-
 docker pull registry.cn-shenzhen.aliyuncs.com/construction_management/construction_management:latest 
-
-
-docker run  --name construction_management_uat --env DEBUG=$1 -v /etc/localtime:/etc/localtime -p 2030:6060 -d --restart always registry.cn-shenzhen.aliyuncs.com/construction_management/construction_management:latest
+docker run  --name construction_management_uat --env DEBUG=$1 -v /etc/localtime:/etc/localtime -p 2030:6060 -d --restart always registry.cn-shenzhen.aliyuncs.com/construction_management/construction_management:latest

+ 4 - 4
web/config-pro.yaml

@@ -1,5 +1,5 @@
-host: "39.108.111.147"
+host: "47.106.95.114"
 port: 3306
-user: "zongheng"
-pwd: "@)!(smartcost#*%)"
-datebase: "construction"
+user: "zh_calc"
+pwd: "zh@)!(3850calc"
+datebase: "construction"

+ 3 - 3
web/config-uat.yaml

@@ -1,5 +1,5 @@
-host: "39.108.111.147"
+host: "47.106.95.114"
 port: 3306
-user: "zongheng"
-pwd: "@)!(smartcost#*%)"
+user: "zh_calc"
+pwd: "zh@)!(3850calc"
 datebase: "construction_uat"