Skip to content

Commit

Permalink
ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
qogustj committed Oct 6, 2023
1 parent df7f35e commit 1c53125
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
expose:
- 8080
ports:
- 8080:8080
- 8081:8080
environment:
- TZ=Asia/Seoul
green:
Expand All @@ -16,6 +16,6 @@ services:
expose:
- 8080
ports:
- 8081:8080
- 8082:8080
environment:
- TZ=Asia/Seoul
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [ -z $IS_GREEN ];then # blue라면
echo "3. green health check..."
sleep 3

REQUEST=$(curl http://127.0.0.1:8081) # green으로 request
REQUEST=$(curl http://127.0.0.1:8082) # green으로 request
if [ -n "$REQUEST" ]; then # 서비스 가능하면 health check 중지
echo "health check success"
break ;
Expand All @@ -42,7 +42,7 @@ else
while [ 1 = 1 ]; do
echo "3. blue health check..."
sleep 3
REQUEST=$(curl http://127.0.0.1:8080) # blue로 request
REQUEST=$(curl http://127.0.0.1:8081) # blue로 request

if [ -n "$REQUEST" ]; then # 서비스 가능하면 health check 중지
echo "health check success"
Expand Down

0 comments on commit 1c53125

Please sign in to comment.