Skip to content

Commit

Permalink
fix: deploy branch prod로 변경 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Nov 21, 2023
1 parent 7e5b007 commit 1b3b5ab
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy

on:
push:
branches: ['develop']
branches: ['main']

env:
ACTIVE_PROFILE: "prod"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM amazoncorretto:17
ARG JAR_FILE=./build/libs/*.jar
COPY ${JAR_FILE} app.jar

ARG PROFILE=dev
ARG PROFILE=prod
ENV PROFILE=${PROFILE}

ENTRYPOINT ["java","-Dspring.profiles.active=${PROFILE}", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
47 changes: 47 additions & 0 deletions src/main/resources/config/application-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# ===================================================================
# Spring Boot Configuration for the prod profile
# ===================================================================

# SERVER
server:
error:
include-exception: true # Include the "exception" attribute.
include-stacktrace: always # When to include a "stacktrace" attribute.
whitelabel.enabled: true

# LOGGING
logging:
level:
root: INFO
com.oksusu: DEBUG
org.hibernate.SQL: DEBUG
org.hibernate.type.descriptor.sql.BasicBinder: TRACE
org.springframework.jdbc.core.JdbcTemplate: DEBUG
org.springframework.jdbc.core.StatementCreatorUtils: TRACE
org.springframework.orm.jpa.JpaTransactionManager: DEBUG
org.springframework.web.server.adapter.HttpWebHandlerAdapter: DEBUG
reactor.netty.http.client: DEBUG

# SPRING
spring:
jackson:
serialization:
indent_output: true

# DEV-DATABASE-COMMON
datasource: &prod-datasource
url: jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${DB_NAME}?useUnicode=true&charset=utf8mb4&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
username: ${MYSQL_USERNAME}
password: ${MYSQL_PASSWORD}
hikari:
minimum-idle: 2
maximum-pool-size: 2

# DATABASE
susu:
master.datasource: *prod-datasource
jpa:
properties:
hibernate.format_sql: true
hibernate.hbm2ddl.auto: none
maximum-jdbc-thread-pool-size:

0 comments on commit 1b3b5ab

Please sign in to comment.