Skip to content

Commit

Permalink
Merge pull request lmw7414#47 from lmw7414/feature/lmw7414#46-heroku
Browse files Browse the repository at this point in the history
헤로쿠에 배포하기
  • Loading branch information
lmw7414 authored Aug 14, 2022
2 parents 9de98d0 + 43bf661 commit ab8bc6f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: java $JAVA_OPTS -Dserver.port=$PORT -Dspring.profiles.active=heroku -jar build/libs/project-board-v1.1.jar
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Spring Boot

## 데모 페이지

(작성 중)
* https://project-board-lmw.herokuapp.com/

## 질문, 건의

Expand Down
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.fastcampus'
version = '0.0.1-SNAPSHOT'
version = 'v1.1'
sourceCompatibility = '17'

configurations {
Expand Down Expand Up @@ -68,3 +68,10 @@ sourceSets {
clean {
delete file(generated)
}

// Heroku 설정
jar {
manifest {
attributes('Main-Class': 'com.fastcampus.projectboard.FastCampusProjectBoardApplication')
}
}
10 changes: 9 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 change: 1 addition & 0 deletions system.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java.runtime.version=17

0 comments on commit ab8bc6f

Please sign in to comment.