Skip to content

Commit

Permalink
Merge pull request #77 from ldj4245/feature/40-heroku
Browse files Browse the repository at this point in the history
배포: 헤로쿠 연동
  • Loading branch information
ldj4245 authored Sep 17, 2024
2 parents 281e265 + 12dfc3e commit 763ca0f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
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/test-data-v1.0.jar
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 = 'org.leedae'
version = '0.0.1-SNAPSHOT'
version = 'v1.0'

java {
toolchain {
Expand Down Expand Up @@ -44,3 +44,10 @@ tasks.named('test') {
useJUnitPlatform()
jvmArgs('-Xshare:off', '-XX:+EnableDynamicAgentLoading')
}

//heroku 설정
jar{
manifest {
attributes 'Main-Class': 'org.leedae.testdata.TestDataApplication'
}
}
10 changes: 10 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ spring:
config.activate.on-profile: test
datasource.url: jdbc:h2:mem:testdb;MODE=MySQL;DATABASE_TO_LOWER=TRUE


---
spring:
config.activate.on-profile: heroku
datasource:
url: ${JAWSDB_URL}
jpa:
hibernate.ddl-auto: create
defer-datasource-initialization: true
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=21

0 comments on commit 763ca0f

Please sign in to comment.