作者 tangxuhui

更新

@@ -7,9 +7,9 @@ metadata: @@ -7,9 +7,9 @@ metadata:
7 k8s-app: project 7 k8s-app: project
8 spec: 8 spec:
9 ports: 9 ports:
10 - - name: "http"  
11 - port: 80  
12 - targetPort: 8082 10 + - name: "http"
  11 + port: 80
  12 + targetPort: 8084
13 selector: 13 selector:
14 k8s-app: project 14 k8s-app: project
15 --- 15 ---
@@ -43,21 +43,21 @@ spec: @@ -43,21 +43,21 @@ spec:
43 - cn-hangzhou.i-bp1euf5u1ph9kbhtndhb 43 - cn-hangzhou.i-bp1euf5u1ph9kbhtndhb
44 - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy 44 - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
45 containers: 45 containers:
46 - - name: project  
47 - image: 192.168.0.243:5000/mmm/project:dev  
48 - imagePullPolicy: Always  
49 - ports:  
50 - - containerPort: 8082  
51 - volumeMounts:  
52 - - mountPath: /opt/logs  
53 - name: accesslogs  
54 - env:  
55 - - name: LOG_LEVEL  
56 - value: "debug"  
57 - - name: ERROR_BASE_CODE  
58 - value: "1"  
59 - - name: ERROR_BASE_CODE_MULTIPLE  
60 - value: "1000" 46 + - name: project
  47 + image: 192.168.0.243:5000/mmm/project:dev
  48 + imagePullPolicy: Always
  49 + ports:
  50 + - containerPort: 8084
  51 + volumeMounts:
  52 + - mountPath: /opt/logs
  53 + name: accesslogs
  54 + env:
  55 + - name: LOG_LEVEL
  56 + value: "debug"
  57 + - name: ERROR_BASE_CODE
  58 + value: "1"
  59 + - name: ERROR_BASE_CODE_MULTIPLE
  60 + value: "1000"
61 volumes: 61 volumes:
62 - - name: accesslogs  
63 - emptyDir: {}  
  62 + - name: accesslogs
  63 + emptyDir: {}
@@ -2,11 +2,11 @@ package constant @@ -2,11 +2,11 @@ package constant
2 2
3 import "os" 3 import "os"
4 4
5 -var POSTGRESQL_DB_NAME = "allied-creation-basic" 5 +var POSTGRESQL_DB_NAME = "allied_creation_basic_dev"
6 var POSTGRESQL_USER = "postgres" 6 var POSTGRESQL_USER = "postgres"
7 -var POSTGRESQL_PASSWORD = "123456"  
8 -var POSTGRESQL_HOST = "127.0.0.1"  
9 -var POSTGRESQL_PORT = "5432" 7 +var POSTGRESQL_PASSWORD = "eagle1010"
  8 +var POSTGRESQL_HOST = "114.55.200.59"
  9 +var POSTGRESQL_PORT = "31543"
10 var DISABLE_CREATE_TABLE = false 10 var DISABLE_CREATE_TABLE = false
11 var DISABLE_SQL_GENERATE_PRINT = false 11 var DISABLE_SQL_GENERATE_PRINT = false
12 12
@@ -17,7 +17,7 @@ func init() { @@ -17,7 +17,7 @@ func init() {
17 web.BConfig.AppName = "project" 17 web.BConfig.AppName = "project"
18 web.BConfig.CopyRequestBody = true 18 web.BConfig.CopyRequestBody = true
19 web.BConfig.RunMode = "dev" 19 web.BConfig.RunMode = "dev"
20 - web.BConfig.Listen.HTTPPort = 8080 20 + web.BConfig.Listen.HTTPPort = 8084
21 web.BConfig.Listen.EnableAdmin = false 21 web.BConfig.Listen.EnableAdmin = false
22 web.BConfig.WebConfig.CommentRouterPath = "/pkg/port/beego" 22 web.BConfig.WebConfig.CommentRouterPath = "/pkg/port/beego"
23 if os.Getenv("RUN_MODE") != "" { 23 if os.Getenv("RUN_MODE") != "" {