Skip to content

Conversation

@JIWONKIMS
Copy link
Collaborator

Close #57

주요 변경사항

  • Spring AI PostgreSQL 호환성 수정
  • Blue/Green 무중단 배포 설정
  • Health check 엔드포인트 허용
  • Weather 캐싱 테스트 엔드포인트 허용
  • Region enum 타입 불일치 임시 수정

검증 완료

  • ✅ 로컬 서버 정상 실행
  • ✅ EC2 배포 성공
  • ✅ Health check 통과
  • ✅ Weather API 정상 동작

🤖 Generated with Claude Code

JIWONKIMS and others added 15 commits October 3, 2025 11:00
- Docker 빌드 시 테스트 및 ktlint 스킵 설정
- 테스트 환경에서 Redis Bean 문제 해결
  - TestConfig 추가하여 Mock RedisConnectionFactory 제공
  - application-test.yml에 Redis AutoConfiguration 제외 설정
  - 모든 테스트 클래스에 @import(TestConfig::class) 적용
- Ktlint 스타일 수정
  - RedisConfig, SecurityConfig, AiChatController 포맷팅 수정
  - AppConfig 파일 끝 개행 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Spring AI was attempting to execute H2-specific schema (schema-h2.sql) on PostgreSQL,
causing infinite restart loop due to unsupported CLOB type.

Changes:
- Set spring.sql.init.mode to never in application.yml
- Add spring.ai.vectorstore.jdbc.initialize-schema: false in application-prod.yml
- Remove schema-locations pointing to H2 schema

Fixes database initialization error: type "clob" does not exist

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Added CONTAINER_2_NAME environment variable to support proper Blue/Green
deployment. Without this, the GREEN variable was empty, causing containers
to be created with random names instead of team11_1/team11_2.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Added /actuator/health to permitAll in SecurityConfig to enable
container health checks during Blue/Green deployment.

Without this, health checks fail due to authentication requirement,
causing deployment rollback.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Temporarily permit /weather/test1 endpoint to test Redis caching
without authentication in production environment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
# Conflicts:
#	src/test/kotlin/com/back/koreaTravelGuide/domain/ai/tour/client/TourApiClientTest.kt
- UserRepository.findByRoleAndLocationContains -> findByRoleAndLocation 변경
- location 파라미터 타입: String -> Region enum으로 변경
- GuideService에서 String을 Region enum으로 변환하는 로직 추가
- upstream merge 후 발생한 타입 불일치 해결을 위한 임시 수정

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Copy link
Collaborator

@YangHJ2415 YangHJ2415 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다.
금요일에 간단히 설명해주시면 감사하겠습니다!

@JIWONKIMS JIWONKIMS merged commit c025b42 into main Oct 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI/CD 작업

3 participants