From 0f6368f2682eb35b9dfe1c662a2126010df5d49b Mon Sep 17 00:00:00 2001 From: Lee Min Woo Date: Sun, 14 Aug 2022 23:30:55 +0900 Subject: [PATCH 1/3] =?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 From ca3a7fc7fd91dc44310e3f79cc90d8b61abcadce Mon Sep 17 00:00:00 2001 From: Lee Min Woo Date: Sun, 14 Aug 2022 23:32:20 +0900 Subject: [PATCH 2/3] =?UTF-8?q?#46=20-=20README.md=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8:=20=ED=97=A4=EB=A1=9C=EC=BF=A0=20=EB=8D=B0?= =?UTF-8?q?=EB=AA=A8=20=EA=B2=BD=EB=A1=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 헤로쿠 대시보드와 설정메뉴에서 이 경로를 찾을 수 있다. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 36b3381..e02f57c 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Spring Boot ## 데모 페이지 -(작성 중) +* https://project-board-lmw.herokuapp.com/ ## 질문, 건의 From 43bf6619ecb942ed30bf8d65b19b2a72f6fc78f9 Mon Sep 17 00:00:00 2001 From: Lee Min Woo Date: Sun, 14 Aug 2022 23:34:00 +0900 Subject: [PATCH 3/3] =?UTF-8?q?#46=20-=20=EB=B2=84=EC=A0=84=20=EC=97=85=20?= =?UTF-8?q?->v1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 6a9d314..1bcaef8 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'com.fastcampus' -version = '0.0.1-SNAPSHOT' +version = 'v1.1' sourceCompatibility = '17' configurations { @@ -68,3 +68,10 @@ sourceSets { clean { delete file(generated) } + +// Heroku 설정 +jar { + manifest { + attributes('Main-Class': 'com.fastcampus.projectboard.FastCampusProjectBoardApplication') + } +} \ No newline at end of file