Skip to content

Commit

Permalink
Chore: build 시 .env 파일 사용하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
TGoddessana committed Dec 25, 2024
1 parent 34cf0b4 commit e979302
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
17 changes: 1 addition & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
HELP.md
.gradle
.env
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
Expand All @@ -32,6 +20,3 @@ out/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/
7 changes: 0 additions & 7 deletions src/main/resources/application.properties

This file was deleted.

16 changes: 16 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
spring:
application:
name: umpa-backend

config:
import: optional:file:.env[.properties]

datasource:
url: ${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}

jpa:
show-sql: true
hibernate:
ddl-auto: create-drop

0 comments on commit e979302

Please sign in to comment.