Skip to content

Commit

Permalink
Merge pull request #209 from woowacourse-teams/feature/#208
Browse files Browse the repository at this point in the history
feat: 환경별 application 분리
  • Loading branch information
ay-eonii authored Aug 4, 2024
2 parents 719b9f9 + 0e6fce5 commit 8586fdb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
7 changes: 7 additions & 0 deletions backend/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: update
show-sql: false
21 changes: 21 additions & 0 deletions backend/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
spring:
application:
name: backend
datasource:
url: jdbc:h2:mem:test
username: sa
password:
driverClassName: org.h2.Driver
jpa:
database-platform: org.hibernate.dialect.H2Dialect
show-sql: true
properties:
hibernate:
format_sql: true
hibernate:
ddl-auto: create-drop
defer-datasource-initialization: true
h2:
console:
enabled: true
path: /h2-console
23 changes: 3 additions & 20 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
spring:
application:
name: backend
datasource:
url: jdbc:h2:mem:test
username: sa
password:
driverClassName: org.h2.Driver
jpa:
database-platform: org.hibernate.dialect.H2Dialect
show-sql: true
properties:
hibernate:
format_sql: true
hibernate:
ddl-auto: create-drop
defer-datasource-initialization: true
h2:
console:
enabled: true
path: /h2-console
profiles:
active:
- local

security:
jwt:
Expand Down

0 comments on commit 8586fdb

Please sign in to comment.