Skip to content

Commit

Permalink
Merge pull request #50 from seyoung755/feat-be/49
Browse files Browse the repository at this point in the history
[BE] 현재까지 진행상황 배포
  • Loading branch information
seyoung755 committed Apr 10, 2022
2 parents 6257f92 + 9fff92f commit 59a7f99
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
3 changes: 2 additions & 1 deletion backend/build.gradle
Expand Up @@ -15,9 +15,10 @@ repositories {
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
runtimeOnly 'com.h2database:h2:2.1.210'
implementation 'mysql:mysql-connector-java'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'io.springfox:springfox-swagger-ui:3.0.0'
runtimeOnly 'com.h2database:h2:2.1.210'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

Expand Down
10 changes: 10 additions & 0 deletions backend/src/main/resources/application-develop.yml
@@ -0,0 +1,10 @@
spring:
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:test
username: sa
password:
h2:
console:
path: /h2-console
enabled: true
9 changes: 9 additions & 0 deletions backend/src/main/resources/application-prod.yml
@@ -0,0 +1,9 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${MYSQL_DATABASE_URL}
username: ${MYSQL_DATABASE_USERNAME}
password: ${MYSQL_DATABASE_PASSWORD}
sql:
init:
schema-locations: classpath:schema.sql
11 changes: 2 additions & 9 deletions backend/src/main/resources/application.yml
@@ -1,10 +1,3 @@
spring:
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:test
username: sa
password:
h2:
console:
path: /h2-console
enabled: true
profiles:
active: ${profile}

0 comments on commit 59a7f99

Please sign in to comment.