-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/#11/applicationyml 파일 수정 환경 변수 설정 #16
The head ref may contain hidden characters: "chore/#11/applicationyml-\uD30C\uC77C-\uC218\uC815-\uD658\uACBD-\uBCC0\uC218-\uC124\uC815"
Conversation
add gitignore "applicaion-local.yml"
local-dev-prod 분리 DB, jpa, secret 설정
add build.gradle mysql
@@ -29,7 +29,7 @@ dependencies { | |||
implementation 'org.springframework.boot:spring-boot-starter-web' | |||
compileOnly 'org.projectlombok:lombok' | |||
developmentOnly 'org.springframework.boot:spring-boot-devtools' | |||
// runtimeOnly 'com.mysql:mysql-connector-j' | |||
runtimeOnly 'com.mysql:mysql-connector-j' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p2: mongoDB 관련 의존성은 제 브랜치에서 추가하겠습니닷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!!
@@ -1,26 +1,89 @@ | |||
spring: | |||
profiles: | |||
active: ${SPRING_PROFILES_ACTIVE:dev} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이렇게 나누는거 좋은데여???
src/main/resources/application.yml
Outdated
datasource: | ||
url: ${DATASOURCE_URL_LOCAL} | ||
username: ${DATASOURCE_USERNAME} | ||
password: ${DATASOURCE_PASSWORD} | ||
driver-class-name: ${DATASOURCE_DRIVER} | ||
driver-class-name: com.mysql.cj.jdbc.Driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DATASOURCE_DRIVER 를 환경변수로 안넣은 이유가 뭔가여???
on-profile: "devMongoDB" | ||
data: | ||
mongodb: | ||
uri: mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@${MONGO_HOST}:${MONGO_PORT}/${MONGO_DB} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
몽고 db 좋은데여??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good!
…-환경-변수-설정 Chore/#11/applicationyml 파일 수정 환경 변수 설정
📝 요약
application.yml 파일 설정 변경
dev와 local로 나누어 설정
이슈 번호 : #11
🔖 변경 사항
application.yml은 dev와 배포용, local은 application-local.yml로 나누었습니다.
application-local.yml은 gitignore적용되어 git에 적용되지 않고, 자유롭게 local 설정에 맞게 수정하시면 됩니다.
application.yml은 수정하시면 안됩니다.
${SPRING_PROFILES_ACTIVE}를 local로 설정해줘야 local에서 application-local.yml 사용 가능합니다
application-local.yml
✅ 리뷰 요구사항
📸 확인 방법 (선택)
📌 PR 진행 시 이러한 점들을 참고해 주세요