#16 board : heroku settings
This commit is contained in:
2
board/Procfile
Normal file
2
board/Procfile
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
web: java $JAVA_OPTS -Dserver.port=$PORT -Dspring.profiles.active=heroku -jar build/libs/board-v1.0.jar
|
||||
@@ -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')
|
||||
}
|
||||
}
|
||||
@@ -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
1
board/system.properties
Normal file
@@ -0,0 +1 @@
|
||||
java.runtime.version=17
|
||||
Reference in New Issue
Block a user