Skip to content

Commit

Permalink
Merge pull request #141 from JNU-econovation/feat-moly
Browse files Browse the repository at this point in the history
운영 환경 설정 yml 추가 및 기존 yml 변경
  • Loading branch information
jminkkk authored Dec 7, 2023
2 parents 6fa3db7 + e35072b commit a7d1133
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 11 deletions.
24 changes: 24 additions & 0 deletions src/main/resources/application-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
spring:
h2:
console:
enabled: true
jpa:
hibernate:
ddl-auto: validate
properties:
hibernate:
format_sql: true
highlight_sql: true
use_sql_comments: true
logging.level:
org.hibernate:
SQL: debug
type: trace
datasource:
url: ${DATABASE_URL}
username: ${DATABASE_USERNAME}
driver-class-name: ${DATABASE_DRIVER}
password: ${DATABASE_PASSWORD}

jwt:
secret: ${JWT_SECRET_KEY}
21 changes: 11 additions & 10 deletions src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
jwt:
secret: ${JWT_SECRET_KEY}


spring:
h2:
console:
enabled: true
#path:
jpa:
hibernate:
ddl-auto: validate
properties:
hibernate:
show_sql: true
format_sql: true
highlight_sql: true
use_sql_comments: true
logging.level:
org.hibernate:
SQL: debug
datasource:
url: ${JDBC_DATABASE_URL}
username: ${JDBC_DATABASE_USERNAME}
driver-class-name: ${JDBC_DATABASE_DRIVER}
password: ${JDBC_DATABASE_PASSWORD}
url: ${DATABASE_URL}
username: ${DATABASE_USERNAME}
driver-class-name: ${DATABASE_DRIVER}
password: ${DATABASE_PASSWORD}

jwt:
secret: ${JWT_SECRET_KEY}
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spring:
profiles:
active:
- production
- develop

0 comments on commit a7d1133

Please sign in to comment.