martin 3 年之前
父节点
当前提交
1a17b7056d

+ 1 - 1
simulation-oauth-client/src/main/resources/logback-spring.xml

@@ -4,7 +4,7 @@
     <property name="PROJECT_NAME" value="changjingyun"/>
 
     <!--定义不同环境的日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
-    <springProfile name="dev">
+    <springProfile name="aliyun">
         <property name="LOG_HOME" value="/opt/simulation-cloud/simulation-oauth-client/log"/>
     </springProfile>
 

+ 10 - 0
simulation-resource-server/src/main/resources/bootstrap-aliyun.yaml

@@ -0,0 +1,10 @@
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 47.94.105.148:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+      config:
+        server-addr: 47.94.105.148:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml

+ 10 - 0
simulation-resource-server/src/main/resources/bootstrap-dev.yaml

@@ -0,0 +1,10 @@
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 10.15.12.70:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+      config:
+        server-addr: 10.15.12.70:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml

+ 0 - 11
simulation-resource-server/src/main/resources/bootstrap.yaml

@@ -6,19 +6,8 @@ server:
 spring:
   application:
     name: simulation-resource-server
-  #* -------------------------------- 环境配置 --------------------------------
   profiles:
     active: dev
-  #* -------------------------------- 微服务配置 --------------------------------
-  cloud:
-    nacos:
-      discovery:
-        server-addr: 10.15.12.70:8848
-        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
-      config:
-        server-addr: 10.15.12.70:8848
-        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
-        file-extension: yaml
   servlet:
     multipart:
       max-file-size: 1024MB

+ 3 - 0
simulation-resource-server/src/main/resources/logback-spring.xml

@@ -6,6 +6,9 @@
     <springProfile name="dev">
         <property name="LOG_HOME" value="logs/${PROJECT_NAME}"/>
     </springProfile>
+    <springProfile name="aliyun">
+        <property name="LOG_HOME" value="/opt/simulation-cloud/simulation-resource-server/log"/>
+    </springProfile>
 
     <!--输出到控制台-->
     <appender name="console" class="ch.qos.logback.core.ConsoleAppender">