Skip to content

Commit 4007437

Browse files
committed
Merge remote-tracking branch 'origin/hotfix/qa' into hotfix/qa
2 parents 8fdbc97 + 12fe3ce commit 4007437

File tree

4 files changed

+42
-3
lines changed

4 files changed

+42
-3
lines changed

.github/workflows/CD.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20+
21+
- uses: actions/checkout@v3
22+
2023
#jdk 세팅
2124
- name: Set up JDK 17
2225
uses: actions/setup-java@v2
@@ -58,7 +61,7 @@ jobs:
5861

5962
#test를 포함한 프로젝트 빌드
6063
- name: Build With Gradle
61-
run: ./gradlew bootjar
64+
run: ./gradlew bootJar
6265

6366
- name: Make a zip file
6467
run: zip -r ./$GITHUB_SHA.zip .

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
- Jasypt
7878

7979
### E-R 다이어그램
80-
![다이어그램](https://github.com/ODOICHON/server/assets/61505572/102a958b-e3cb-46bf-887f-28dbfbfdf531)
80+
![주말내집 ERD-6](https://github.com/ODOICHON/server/assets/61505572/24511404-8fd0-49fe-9104-6245d7b24fec)
81+
8182

8283
### REST DOCS 기반 API 명세서
8384
**주말내집 서비스**
@@ -88,6 +89,7 @@
8889
- [커뮤니티 게시글 좋아요 API 명세서](https://odoichon.github.io/server/src/main/resources/static/docs/love.html)
8990
- [빈집 게시글 API 명세서](https://odoichon.github.io/server/src/main/resources/static/docs/house.html)
9091
- [빈집 게시글 스크랩 API 명세서](https://odoichon.github.io/server/src/main/resources/static/docs/scrap.html)
92+
- [알림 API 명세서](https://odoichon.github.io/server/src/main/resources/static/docs/notification.html)
9193

9294
**테크블로그 서비스**
9395
- [레코드 API 명세서](https://odoichon.github.io/server/src/main/resources/static/docs/record.html)
@@ -408,5 +410,5 @@ soft delete 적용 과정은 [Soft Delete 방식 적용](https://github.com/ODOI
408410
| ------- | --------------------------------------------- | ------------------------------------ |-------------------------------------------------------------------------------------------------------------------|
409411
| Profile | <center> <img width="110px" height="110px" src="https://avatars.githubusercontent.com/u/61505572?v=4" /> </center>|<center><img width="110px" height="110px" src="https://avatars.githubusercontent.com/u/80155336?v=4" /></center>| <center><img width="110px" height="110px" src="https://avatars.githubusercontent.com/u/102985637?v=4" /></center> |
410412
| Role | <center>Team Leader<br> Back-end, DevOps</center> | <center>Back-end, <br> DevOps</center> | <center>Back-end ,<br> DevOps</center> |
411-
| Part | <center> 프로젝트 세팅 <br> 커뮤니티 API <br> 빈집 거래 API <br> 테크 블로그 프론트엔드 100% 개발 </center> | <center> 인프라 세팅 <br> 관리자페이지(SSR) 100% 개발 <br> 성능 개선(캐싱, 동적쿼리 리펙토링) </center> | <center> 사용자 API <br> 마이페이지 API <br> DDoS 방지 처리 <br> 테크 블로그 API 100% 개발 </center> |
413+
| Part | <center> 프로젝트 세팅 <br> 커뮤니티 API <br> 빈집 거래 API <br> 테크 블로그 프론트엔드 100% 개발 <br> 전체 서비스 유지보수 및 관리자페이지 일부 기능 개발 </center> | <center> 인프라 세팅 <br> 관리자페이지(SSR) 100% 개발 <br> 성능 개선(캐싱, 동적쿼리 리펙토링) </center> | <center> 사용자 API <br> 마이페이지 API <br> DDoS 방지 처리 <br> 테크 블로그 API 100% 개발 </center> |
412414
GitHub | <center>[@dldmsql](https://github.com/dldmsql)</center> | <center>[@YoonTaeMinnnn](https://github.com/YoonTaeMinnnn) </center>| <center>[@MoonMinHyuk1](https://github.com/MoonMinHyuk1) </center> |

scripts/health-check.sh

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
# Crawl current connected port of WAS
4+
CURRENT_PORT=$(cat /home/ubuntu/service_url.inc | grep -Po '[0-9]+' | tail -1)
5+
TARGET_PORT=0
6+
7+
# Toggle port Number
8+
if [ ${CURRENT_PORT} -eq 8081 ]; then
9+
TARGET_PORT=8082
10+
elif [ ${CURRENT_PORT} -eq 8082 ]; then
11+
TARGET_PORT=8081
12+
else
13+
echo "> No WAS is connected to nginx"
14+
exit 1
15+
fi
16+
17+
18+
echo "> Start health check of WAS at 'http://13.209.202.74:${TARGET_PORT}' ..."
19+
20+
for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10
21+
do
22+
echo "> #${RETRY_COUNT} trying..."
23+
RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://13.209.202.74:${TARGET_PORT}/api)
24+
25+
if [ ${RESPONSE_CODE} -eq 200 ]; then
26+
echo "> New WAS successfully running"
27+
exit 0
28+
elif [ ${RETRY_COUNT} -eq 10 ]; then
29+
echo "> Health check failed."
30+
exit 1
31+
fi
32+
sleep 10
33+
done

src/main/kotlin/com/example/jhouse_server/global/config/WebConfig.kt

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class WebConfig (
3232
"https://dev.duaily.net",
3333
"https://dev.jmhouse.org",
3434
"https://jmhouse.org",
35+
3536
)
3637
.allowedMethods(
3738
HttpMethod.GET.name,

0 commit comments

Comments
 (0)