## 추가된 파일
- scripts/fix-nginx-taxbaik.sh: Nginx 설정 자동 수정 (백업 + 검증)
- DEPLOYMENT_GUIDE.md: 배포 가이드 (자동/수동/검증/롤백)
## 사용 방법
### 자동 배포 (권장):
ssh kjh2064@178.104.200.7
cd /home/kjh2064
chmod +x fix-nginx.sh
sudo ./fix-nginx.sh
### 스크립트 기능
✅ Nginx 설정 자동 수정
✅ 자동 백업 생성
✅ 문법 검증 (nginx -t)
✅ Nginx 자동 재로드
✅ 롤백 불가능 시 자동 복구
## 검증 항목
✅ Nginx 설정 (location /taxbaik/ + rewrite 규칙)
✅ 공개 사이트: HTTP 200
✅ 관리자 로그인: HTTP 200
✅ E2E 테스트: public-smoke 5/5, quick-test 4/4
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Root had accumulated files that should never have been tracked:
- Committed build output: TaxBaik.Web.*.json (runtimeconfig/deps), and a
225-file root wwwroot/ that duplicated (and was staler than)
TaxBaik.Web/wwwroot/.
- A stale migrations/ (V001-V003 only) superseded by db/migrations/, which
is the directory MigrationRunner and CI actually use.
- An orphaned root appsettings.json (dev DB password + JWT secret) that the
app's content root (TaxBaik.Web/) never actually loads.
- Ad-hoc debug/log scratch files: debug-settings.js, final-test.js,
test-settings.js, settings-page.png, login-test-output.log,
server.{err,out}.log.
- docker-compose.yml, Dockerfile.*, web.config, SERVER_SETUP.sh, deploy.sh,
remote_deploy.sh - none referenced by any .gitea/workflows/*.yml; leftovers
from a Docker/manual-deploy approach superseded by deploy_gb.sh's
systemd + Green-Blue proxy model.
- Tmp/ - screenshots and a scratch html/js, exactly the "temp work
committed to root" problem.
None of this is destroyed - it stays recoverable via git history if ever
needed. Historical root-level docs (BLOG_TEMPLATE.md, DEPLOYMENT_GUIDE.md,
etc.) are moved into docs/archive/ rather than deleted, since docs/INDEX.md
already treats anything outside docs/ as non-canonical reference material.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- MigrationRunner 구현 (자동 DB 마이그레이션)
- Program.cs에 마이그레이션 자동 실행 추가
- 마이그레이션 SQL 파일을 임베드 리소스로 설정
- 완전한 배포 가이드 작성 (DEPLOYMENT_GUIDE.md)
- E2E 테스트 절차 포함
- 롤백 및 모니터링 가이드 추가
배포 준비 완료: Gitea CI/CD 자동 배포 활성화 가능
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>