张延森 3 vuotta sitten
vanhempi
commit
185a5fca2e
5 muutettua tiedostoa jossa 46 lisäystä ja 12 poistoa
  1. 4
    0
      .gitignore
  2. 5
    0
      deploy/bootstrap
  3. 34
    0
      deploy/s.yml
  4. 0
    9
      pom.xml
  5. 3
    3
      src/main/resources/application-prod.yml

+ 4
- 0
.gitignore Näytä tiedosto

@@ -31,3 +31,7 @@ build/
31 31
 
32 32
 ### VS Code ###
33 33
 .vscode/
34
+
35
+deploy/*.jar
36
+deploy/*.zip
37
+deploy/.s/

+ 5
- 0
deploy/bootstrap Näytä tiedosto

@@ -0,0 +1,5 @@
1
+#!/bin/bash
2
+#
3
+#
4
+
5
+java -jar ./ubpa-0.0.1.jar

+ 34
- 0
deploy/s.yml Näytä tiedosto

@@ -0,0 +1,34 @@
1
+edition: 1.0.0          #  命令行YAML规范版本,遵循语义化版本(Semantic Versioning)规范。
2
+name: ubpa-plat        #  项目名称。
3
+access: default         #  密钥别名。
4
+
5
+services:
6
+  dianyang: #  服务名称。
7
+    component: devsapp/fc
8
+    props: #  组件的属性值。
9
+      region: cn-shanghai
10
+      service:
11
+        name: ubpa-plat
12
+        description: '红鹤集团'
13
+        internetAccess: true
14
+      function:
15
+        name: ubpa-func
16
+        description: 'Roundabout h5'
17
+        ossBucket: yz-serverless
18
+        ossKey: ubpa/ubpa-0.0.1.zip
19
+        handler: 'com.njyunzhi.ubpa.UbpaApplication::main'
20
+        memorySize: 1024
21
+        timeout: 30
22
+        runtime: custom
23
+        caPort: 9000
24
+        initializationTimeout: 30
25
+      triggers:
26
+        - name: httpUbpa
27
+          type: http
28
+          config:
29
+            authType: anonymous
30
+            methods:
31
+              - GET
32
+              - POST
33
+              - PUT
34
+              - DELETE

+ 0
- 9
pom.xml Näytä tiedosto

@@ -199,14 +199,6 @@
199 199
 					</plugin>
200 200
 				</plugins>
201 201
 				<resources>
202
-					<resource>
203
-						<directory>src/main/resources</directory>
204
-						<filtering>true</filtering>
205
-						<excludes>
206
-							<exclude>application.yml</exclude>
207
-							<exclude>application-*.yml</exclude>
208
-						</excludes>
209
-					</resource>
210 202
 					<resource>
211 203
 						<directory>src/main/resources</directory>
212 204
 						<filtering>true</filtering>
@@ -215,7 +207,6 @@
215 207
 							<include>application.yml</include>
216 208
 							<include>application-${profileActive}.yml</include>
217 209
 						</includes>
218
-						<targetPath>${project.build.directory}/config</targetPath>
219 210
 					</resource>
220 211
 				</resources>
221 212
 			</build>

+ 3
- 3
src/main/resources/application-prod.yml Näytä tiedosto

@@ -5,7 +5,7 @@ spring:
5 5
       max-file-size: 10MB
6 6
       max-request-size: 50MB
7 7
   datasource:
8
-    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/dianyang_colmo?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
9
-    username: dianyang_colmo
10
-    password: dianyang_colmo@ABC123
8
+    url: jdbc:mysql://110.40.183.156:3306/nanyang_machinery?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
9
+    username: nanyang_machinery
10
+    password: nanyang_machinery@ABCD1234
11 11