#16 board : heroku settings

This commit is contained in:
haerong22
2022-08-26 03:27:49 +09:00
parent e1b93ae610
commit bf1954cfa5
4 changed files with 22 additions and 2 deletions

2
board/Procfile Normal file
View File

@@ -0,0 +1,2 @@
web: java $JAVA_OPTS -Dserver.port=$PORT -Dspring.profiles.active=heroku -jar build/libs/board-v1.0.jar

View File

@@ -5,7 +5,7 @@ plugins {
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
version = 'v.1.0'
sourceCompatibility = '17'
configurations {
@@ -68,4 +68,11 @@ sourceSets {
// gradle clean 시에 QClass 디렉토리 삭제
clean {
delete file(generated)
}
// Heroku 설정
jar {
manifest {
attributes('Main-Class': 'com.example.board.BoardApplication')
}
}

View File

@@ -40,4 +40,14 @@ spring:
# url: jdbc:h2:mem:board;mode=mysql
# driver-class-name: org.h2.Driver
# sql.init.mode: always
# test.database.replace: none
# test.database.replace: none
---
spring:
config.activate.on-profile: heroku
datasource:
url: ${JAWSDB_URL}
driver-class-name: com.mysql.cj.jdbc.Driver
jpa.hibernate.ddl-auto: create
sql.init.mode: always

1
board/system.properties Normal file
View File

@@ -0,0 +1 @@
java.runtime.version=17