[ application.yml ]
spring:
application:
name: glu-{서비스 명}
profiles:
active: ${SPRING_PROFILES_ACTIVE:dev}
config:
import: optional:configserver:<http://{username}:{password}@j11a506.p.ssafy.io>:${CONFIG_PORT:4000}
ex) [ application.yml in problem server ]
spring:
application:
name: glu-problem
profiles:
active: ${SPRING_PROFILES_ACTIVE:dev}
config:
import: optional:configserver:<http://admin:[email protected]>:${CONFIG_PORT:4000}
https://github.com/E-Glu/glu-config 위 repository에 환경설정 정보 등록
glu-{서비스명}-{profile명}.yml에 등록
spring:
application:
name: glu-{서비스 명}
profiles:
active: ${SPRING_PROFILES_ACTIVE:dev}
위 설정을 통해 glu-{서비스 명}-{활성화된 profile}.yml
파일을 환경 설정 파일로 가져옴
spring:
application:
name: glu-recommend
profiles:
active: ${SPRING_PROFILES_ACTIVE:dev}