Skip to content

Commit

Permalink
disable eureka client for apollo-portal
Browse files Browse the repository at this point in the history
apollo-all-in-one.jar contains eureka dependencies which will trigger EurekaClientAutoConfiguration for apollo-portal, so we need to manually disable it by setting eureka.client.enabled to false
  • Loading branch information
nobodyiam authored Apr 30, 2019
1 parent 297ba75 commit c61f79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ portal_url=http://localhost:8070
BASE_JAVA_OPTS="-Denv=dev"
CLIENT_JAVA_OPTS="$BASE_JAVA_OPTS -Dapollo.meta=$config_server_url"
SERVER_JAVA_OPTS="$BASE_JAVA_OPTS -Dspring.profiles.active=github -Deureka.service.url=$eureka_service_url"
PORTAL_JAVA_OPTS="$BASE_JAVA_OPTS -Ddev_meta=$config_server_url -Dspring.profiles.active=github,auth"
PORTAL_JAVA_OPTS="$BASE_JAVA_OPTS -Ddev_meta=$config_server_url -Dspring.profiles.active=github,auth -Deureka.client.enabled=false"

# executable
JAR_FILE=apollo-all-in-one.jar
Expand Down

0 comments on commit c61f79b

Please sign in to comment.