0. 배포를 위한 Spring 설정
---
spring:
config.activate.on-profile: prod
datasource:
driver-class-name: org.mariadb.jdbc.Driver
url: jdbc:mariadb://${DB_HOST}:${DB_PORT}/board?characterEncoding=UTF-8&serverTimezone=UTC
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
jpa:
open-in-view: false
show-sql: true
defer-datasource-initialization: true
hibernate.ddl-auto: create
properties:
hibernate.dialect: org.hibernate.dialect.MariaDBDialect
hibernate.format_sql: true
hibernate.default_batch_fetch_size: 100
sql.init.mode: always
data.rest:
base-path: /api
detection-strategy: annotated
1. 데이터 베이스 검색
2. DB 생성
Username, Password 등 설정 가능
3.배포할 github project 선택
4. 연동을 위한 설정
SPRING_PROFILES_ACTIVE: 실행을 희망하는 profile 값
5. 배포 완료
'TIL' 카테고리의 다른 글
[Spring] 좋아요 기능 추가 (0) | 2023.01.28 |
---|---|
[Spring] JPA deleteAll (0) | 2023.01.26 |
[Spring] Json 응답처리와 예외처리 (0) | 2023.01.14 |
[GITHUB] 1개 Issue에 changed files이 많을 때 처리법 (0) | 2022.12.30 |
[Spring] DAO, DTO (0) | 2022.12.29 |