Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions infra/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sed -i '/^KOK_PROD_TAG=/d' .env || true
echo "KOK_PROD_TAG=$LATEST_TAG" >> .env

# ν˜„μž¬ μ‚¬μš© 쀑인 Blue/Green 확인
CURRENT_PORT=$(grep -o 'localhost:[0-9]\+' /etc/nginx/conf.d/service-url.inc | awk -F: '{print $2}')
CURRENT_PORT=$(grep -o '127.0.0.1:[0-9]\+' /etc/nginx/conf.d/service-url.inc | awk -F: '{print $2}')

if [ "$CURRENT_PORT" == "8081" ]; then
CURRENT_ENV="kok-blue"
Expand All @@ -34,7 +34,7 @@ docker compose -f $COMPOSE_FILE up -d

echo "🩺 Health Check (60초 λŒ€κΈ°)"
sleep 60
HEALTH=$(curl -s http://localhost:$NEW_PORT/v1/api/health)
HEALTH=$(curl -s http://127.0.0.1:$NEW_PORT/v1/api/health)
echo "Health Check κ²°κ³Ό: $HEALTH"
CODE=$(echo "$HEALTH" | jq -r '.code')
DATA=$(echo "$HEALTH" | jq -r '.data')
Expand Down
Loading