Skip to content

Commit 8d51a3e

Browse files
authored
Merge pull request #140 from umc-commit/bug/139-nginx-conf
[BUG] niginx 오류 수정
2 parents 35c909b + 68228ac commit 8d51a3e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/cd.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ jobs:
7272
ln -sf $TARGET_CONF /opt/app/nginx/default.conf
7373
echo "🔁 Linked $TARGET_CONF to default.conf"
7474
75-
# 컨테이너 내부로 설정 파일 복사
76-
docker cp /opt/app/nginx/default.conf nginx-proxy:/etc/nginx/conf.d/default.conf
77-
echo "📄 Copied default.conf to nginx container"
75+
# 현재 심볼릭 링크가 실제로 가리키는 파일 확인
76+
ACTUAL_LINK=$(readlink -f /opt/app/nginx/default.conf)
77+
echo "📌 Current nginx config link points to: $ACTUAL_LINK"
7878
7979
# Nginx reload
8080
docker exec nginx-proxy nginx -s reload
@@ -88,6 +88,8 @@ jobs:
8888
fi
8989
9090
exit 0
91+
else
92+
echo "⚠️ Health check attempt $i failed."
9193
fi
9294
done
9395

0 commit comments

Comments
 (0)