From e1038ea95ff6f4ecaa475c1d9d0ba087d5cecebc Mon Sep 17 00:00:00 2001 From: Jeyong Date: Tue, 2 Dec 2025 22:36:03 +0900 Subject: [PATCH 1/3] =?UTF-8?q?ci:=20SQL=20=EB=A1=9C=EA=B9=85=20=EB=A0=88?= =?UTF-8?q?=EB=B2=A8=20=EC=84=A4=EC=A0=95=20=EB=B0=8F=20health=20check=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 4 +++- src/main/resources/application.yml | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index b75f732..0374376 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -11,7 +11,7 @@ spring: show-sql: true properties: hibernate: - format_sql: true + format_sql: false dialect: org.hibernate.dialect.MySQL8Dialect config: @@ -23,6 +23,8 @@ server: logging: config: classpath:logback-dev.xml + level: + org.hibernate.sql: DEBUG auth: jwt: diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f4601e8..fdbf0f8 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -17,6 +17,19 @@ spring: format_sql: true dialect: org.hibernate.dialect.MySQL8Dialect +management: + endpoint: + info: + access: read_only + health: + access: read_only + endpoints: + access: + default: none + web: + exposure: + include: health, info + server: port: 9000 From 0ab74c6fb4d9447fedd737cec4969cb47c46e4bf Mon Sep 17 00:00:00 2001 From: Jeyong Date: Tue, 2 Dec 2025 22:36:19 +0900 Subject: [PATCH 2/3] =?UTF-8?q?ci:=20CD=20workflow=20=EB=82=B4=EC=97=90=20?= =?UTF-8?q?=ED=97=AC=EC=8A=A4=20=EC=B2=B4=ED=81=AC=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index efc4e90..e28602e 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -129,6 +129,32 @@ jobs: export IMAGE_NAME="${IMAGE_NAME}" export IMAGE_TAG="${IMAGE_TAG}" bash ${{ secrets.DEPLOY_SCRIPT_PATH }} + + + - name: Health Check + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.EC2_IP }} + username: ${{ secrets.EC2_USER }} + key: ${{ secrets.EC2_KEY }} + script: | + sleep 5; + echo "Health Check μ‹œμž‘...🩺" + + for i in {1..10} + do + STATUS=$(curl -s -o /dev/null -w "%{http_code}" ${{ secrets.HEALTH_URL }}) + if [ "$STATUS" -eq 200 ]; then + echo "βœ… μ„œλ²„ 정상 응닡 (HTTP 200)" + exit 0 + fi + + echo "⏳ μ„œλ²„ 기동 λŒ€κΈ°μ€‘... ($i/10)" + sleep 5 + done + + echo "❌ Health Check μ‹€νŒ¨" + exit 1 - name: CleanUp if: always() From 9d5ff9980734ced219150e1c5806a31ecf937329 Mon Sep 17 00:00:00 2001 From: Jeyong Date: Tue, 2 Dec 2025 22:41:18 +0900 Subject: [PATCH 3/3] =?UTF-8?q?ci:=20PR=20Review=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 1 + src/main/resources/application.yml | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 0374376..0a4feeb 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -25,6 +25,7 @@ logging: config: classpath:logback-dev.xml level: org.hibernate.sql: DEBUG + org.hibernate.type.descriptor.sql: TRACE auth: jwt: diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index fdbf0f8..f3df489 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -18,14 +18,7 @@ spring: dialect: org.hibernate.dialect.MySQL8Dialect management: - endpoint: - info: - access: read_only - health: - access: read_only endpoints: - access: - default: none web: exposure: include: health, info