Browse Source

添加sit配置

tuonina 5 years ago
parent
commit
e4f318cb02

+ 10 - 1
zen-web/src/main/resources/bootstrap.yml

@@ -37,11 +37,20 @@ eureka:
 ---
 spring:
   profiles: prod
+eureka:
+  client:
+    service-url:
+      defaultZone: http://envir:envir@120.77.170.119:11001/eureka/
+  instance:
+    prefer-ip-address: true
 
 
+---
+spring:
+  profiles: sit
 eureka:
   client:
     service-url:
-      defaultZone: http://envir:envir@120.77.170.119:11001/eureka/
+      defaultZone: http://envir:envir@172.18.167.76:11002/eureka/
   instance:
     prefer-ip-address: true

+ 11 - 0
zen-web/src/main/resources/logback-spring.xml

@@ -185,6 +185,17 @@
     <!--<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">-->
     <!--<resetJUL>true</resetJUL>-->
     <!--</contextListener>-->
+
+    <springProfile name="sit">
+        <root level="INFO">
+            <appender-ref ref="CONSOLE"/>
+            <appender-ref ref="STDOUT"/>
+            <appender-ref ref="FILEERROR"/>
+            <appender-ref ref="FILEWARN"/>
+            <appender-ref ref="FILEINFO"/>
+        </root>
+    </springProfile>
+
     <springProfile name="prod">
         <root level="INFO">
             <appender-ref ref="CONSOLE"/>