Skip to content

Commit

Permalink
[BE] prod 프로필 추가 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkjsw17 authored May 24, 2024
1 parent 9546ad6 commit dd3bbe9
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
3 changes: 3 additions & 0 deletions backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")

implementation("com.h2database:h2")
implementation("com.mysql:mysql-connector-j")

implementation("org.jetbrains.kotlin:kotlin-reflect")
developmentOnly("org.springframework.boot:spring-boot-devtools")
testImplementation("org.springframework.boot:spring-boot-starter-test")
Expand Down
14 changes: 14 additions & 0 deletions backend/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
spring:
datasource:
url: jdbc:h2:~/test
driverClassName: org.h2.Driver
username: sa
password: 1234
jpa:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: update
h2:
console:
enabled: true
path: /h2-console
9 changes: 9 additions & 0 deletions backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
spring:
datasource:
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/travel?characterEncoding=UTF-8
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: update
15 changes: 1 addition & 14 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
spring:
application:
name: toy
datasource:
url: jdbc:h2:~/test
driverClassName: org.h2.Driver
username: sa
password: 1234
jpa:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: update
h2:
console:
enabled: true
path: /h2-console
openai:
api:
key: secret
key: ${OPENAI_API_KEY:secret}

0 comments on commit dd3bbe9

Please sign in to comment.