Skip to content

Commit c2709ea

Browse files
committed
fix(deploy): 배포용 설정으로 변경
h2 database => postgres Change-Id: I657ee6ec41191eec0a422ef3e6cab9395ca470a2
1 parent 9708a42 commit c2709ea

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
spring.application.name=app
1+
spring.application.name=growit
22

3-
spring.datasource.url=jdbc:h2:mem:testdb
4-
spring.datasource.driver-class-name=org.h2.Driver
5-
spring.datasource.username=sa
6-
spring.datasource.password=1234
3+
spring.datasource.url=jdbc:postgresql://${SPRING_DATASOURCE_URL}:5432/growit
4+
spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
5+
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
6+
spring.datasource.driver-class-name=org.postgresql.Driver
77

8-
spring.jpa.hibernate.ddl-auto=create
8+
spring.jpa.hibernate.ddl-auto=update
99
spring.jpa.show-sql=true
10-
spring.jpa.defer-datasource-initialization=true
11-
12-
spring.h2.console.enabled=true
13-
spring.h2.console.path=/h2-console
10+
spring.jpa.properties.hibernate.format_sql=true
11+
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
1412

1513
jwt.expired-second=3600
16-
jwt.secret-key=mySuperSecureKeyThatIsMoreThan32BytesLong123
1714
jwt.refresh-expired-second=86400
15+
jwt.secret-key=${JWT_SECRET}

app/src/main/resources/data.sql

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)