Skip to content

Commit

Permalink
๐Ÿ”— :: (#691) yml ํŒŒ์ผ ๋ถ„๋ฆฌ
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 authored Aug 17, 2024
2 parents 8fa96e6 + 2040c8f commit 1f2bd0e
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
S3_BUCKET: ${{ secret.S3_BUCKET }}
run: ./gradlew test build sonarqube --info
20 changes: 20 additions & 0 deletions jobis-infrastructure/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
spring:
config:
activate:
on-profile: dev

datasource:
url: jdbc:mysql://${DB_URL:localhost}:3306/${DB_NAME:jobis}?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&tinyInt1isBit=false&rewriteBatchedStatements=true
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:11111111}

data:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:asdf}

jpa:
properties:
hibernate:
show_sql: false
15 changes: 15 additions & 0 deletions jobis-infrastructure/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
spring:
config:
activate:
on-profile: local

datasource:
url: jdbc:mysql://${DB_URL:localhost}:3306/${DB_NAME:jobis}?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&tinyInt1isBit=false&rewriteBatchedStatements=true
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:070211}

data:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:asdf}
15 changes: 15 additions & 0 deletions jobis-infrastructure/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
spring:
config:
activate:
on-profile: prod

datasource:
url: jdbc:mysql://${DB_URL:localhost}:3306/${DB_NAME:jobis}?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&tinyInt1isBit=false&rewriteBatchedStatements=true
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:11111111}

data:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:asdf}
19 changes: 13 additions & 6 deletions jobis-infrastructure/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
server:
port: 8080
shutdown: graceful

spring:
profiles:
active: ${PROFILE:local}

lifecycle:
timeout-per-shutdown-phase: "60s"

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${DB_URL:localhost}:3306/${DB_NAME:jobis}?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&tinyInt1isBit=false&rewriteBatchedStatements=true
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:11111111}

flyway:
enabled: ${FLYWAY_ENABLED:false}
Expand Down Expand Up @@ -95,8 +102,8 @@ logging:
EC2MetadataUtils: error

fcm:
path: ${FCM_PATH}
path: ${FCM_PATH:d}

slack:
url: ${SLACK_URL}
token: ${SLACK_TOKEN}
url: ${SLACK_URL:d}
token: ${SLACK_TOKEN:d}

0 comments on commit 1f2bd0e

Please sign in to comment.