From 0f6368f2682eb35b9dfe1c662a2126010df5d49b Mon Sep 17 00:00:00 2001 From: Lee Min Woo Date: Sun, 14 Aug 2022 23:30:55 +0900 Subject: [PATCH] =?UTF-8?q?#46=20-=20=ED=97=A4=EB=A1=9C=EC=BF=A0=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gradle + spring + java 17에 맞춰 필요한 모든 설정을 작성 --- Procfile | 1 + src/main/resources/application.yaml | 10 +++++++++- system.properties | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Procfile create mode 100644 system.properties diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..dd7710b --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: java $JAVA_OPTS -Dserver.port=$PORT -Dspring.profiles.active=heroku -jar build/libs/project-board-v1.1.jar \ No newline at end of file diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index f25de01..164b23e 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -30,5 +30,13 @@ spring: detection-strategy: annotated thymeleaf3.decoupled-logic: true - +--- +spring: + config: + activate: + on-profile: heroku + datasource: + url: ${CLEARDB_DATABASE_URL} + jpa.hibernate.ddl-auto: create + sql.init.mode: always diff --git a/system.properties b/system.properties new file mode 100644 index 0000000..0dc726c --- /dev/null +++ b/system.properties @@ -0,0 +1 @@ +java.runtime.version=17 \ No newline at end of file