Skip to content

Commit

Permalink
feat: yaml 프로파일 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomeo184 committed Oct 8, 2023
1 parent b707be3 commit 4409027
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ out/
.vscode/

## secret.yml 파일은 서브모듈에서 관리한다.
/src/main/resources/application-secret.yml
/src/main/resources/application-secret*.yml

## API 문서는 빌드시 자동생성된다.
/src/main/resources/static/docs/index.html
2 changes: 1 addition & 1 deletion be-submodule
17 changes: 12 additions & 5 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
spring:
profiles:
active: local
include: secret

server:
port : 7070

--- # local
spring:
config:
activate:
on-profile: local
profiles:
- local
group:
local:
- secret-local
include: secret-local

--- # prod
spring:
config:
activate:
on-profile: prod
profiles:
include: secret-prod

0 comments on commit 4409027

Please sign in to comment.