Skip to content

Commit c62d7d7

Browse files
authored
[infra] main.tf, application-prod.yml 수정 (#199)
* work * work
1 parent beffbaf commit c62d7d7

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

infra/terraform/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ cat <<EOF > .env
249249
250250
NPM_ADMIN_PASSWORD=${var.password}
251251
REDIS_PASSWORD=${var.password}
252+
253+
DB_HOST=${aws_db_instance.rds_postgres.endpoint}
254+
DB_PORT=5432
255+
DB_NAME=morimori
256+
DB_USERNAME=${var.db_username}
257+
DB_PASSWORD=${var.db_password}
258+
APP_1_DOMAIN=${var.morimori_domain}
259+
GITHUB_ACCESS_TOKEN_1_OWNER=${var.github_access_token_owner}
260+
GITHUB_ACCESS_TOKEN_1=${var.github_access_token}
252261
EOF
253262
254263
# GHCR 로그인

src/main/resources/application-prod.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ spring:
1010
username: ${DB_USERNAME}
1111
password: ${DB_PASSWORD}
1212
driver-class-name: org.postgresql.Driver
13+
jpa:
14+
hibernate:
15+
ddl-auto: update
16+
properties:
17+
hibernate:
18+
dialect: org.hibernate.dialect.PostgreSQLDialect
19+
show-sql: true
20+
1321
logging:
1422
level:
1523
org.hibernate.orm.jdbc.bind: INFO

0 commit comments

Comments
 (0)