Skip to content

Commit

Permalink
chore: local-prod별 환경 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
electronyoon committed Jan 25, 2025
1 parent faa1c9b commit 78f7b1f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 31 deletions.
2 changes: 1 addition & 1 deletion zipsoonbatch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies {
testCompileOnly 'org.projectlombok:lombok'
testImplementation 'me.paulschwarz:spring-dotenv:4.0.0'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.testcontainers:junit-jupiter:1.20.4'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql:1.20.4'
testImplementation 'org.testcontainers:testcontainers:1.20.4'
}
Expand Down
29 changes: 6 additions & 23 deletions zipsoonbatch/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,14 @@
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/postgres
username: postgres
password: postgres

profiles:
active: local
url: jdbc:postgresql://db.wdnnpbyamdkwzwxskak.supabase.co:5432/postgres
username: ${DB_USER}
password: ${DB_PASSWORD}

batch:
jdbc:
initialize-schema: never
job:
enabled: false

mybatis:
mapper-locations: classpath:mapper/**/*.xml
configuration:
map-underscore-to-camel-case: true
type-handlers-package: com.zipsoon.zipsoonbatch.config.typehandler
enabled: true

logging:
level:
org.springframework.batch: DEBUG
com.zipsoon.zipsoonbatch: DEBUG

naver:
land:
base-url: https://new.land.naver.com/api
auth-token: ${NAVER_AUTH_TOKEN}
org.springframework.batch: INFO
com.zipsoon.zipsoonbatch: INFO
15 changes: 8 additions & 7 deletions zipsoonbatch/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://db.wdnnpbyamdkwwzwxskak.supabase.co:5432/postgres
username: ${DB_USER}
password: ${DB_PASSWORD}
url: jdbc:postgresql://localhost:5432/testdb
username: postgres
password: postgres

profiles:
active: local
sql:
init:
mode: embedded
schema-locations: classpath:schema.sql

batch:
jdbc:
initialize-schema: never
initialize-schema: always
job:
enabled: false


mybatis:
mapper-locations: classpath:mapper/**/*.xml
configuration:
Expand Down

0 comments on commit 78f7b1f

Please sign in to comment.