refactor admin UX and stabilize shell
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m20s

This commit is contained in:
2026-07-09 00:03:33 +09:00
parent a2f94e2b5e
commit 89fa51efe2
91 changed files with 1633 additions and 1030 deletions
+10 -11
View File
@@ -128,16 +128,15 @@ $env:ASPNETCORE_ENVIRONMENT="Development"
dotnet watch run --project .\src\TaxBaik.Web\TaxBaik.Web.csproj
# 4. 브라우저 열기
# 공개 사이트: http://localhost:5001/taxbaik
# 관리자: http://localhost:5001/taxbaik/admin/login
# 공개 사이트: http://localhost:5001/
# 관리자: http://localhost:5001/admin/login
```
### 초기 로그인 정보
- **username**: `admin`
- **password**: `<TAXBAIK_ADMIN_TEST_PASSWORD>` or current rotated admin password
- 로컬 DB에 시드된 기본 관리자 계정은 `admin`니다.
> ⚠️ **중요**: 프로덕션 배포 시 비밀번호 변경 필수이며, 검증용 비밀번호는 Gitea Secrets로 관리
- 운영 관리자: `admin / Admin@123456`
- E2E 자동화: `test_admin / TestAdmin@123456`
- 프로덕션 배포 시 비밀번호 변경은 필수이며, 검증용 비밀번호는 Gitea Secrets로 관리합니다.
---
@@ -154,7 +153,7 @@ master 브랜치에 푸시하면 파이프라인이 다음 단계를 수행합
4. `TaxBaik.Web` 게시
5. 원격 서버 배포 디렉토리 업로드 및 `taxbaik_active` 심링크 교체
6. systemd `taxbaik` 단일 서비스 재시작
7. `/taxbaik/`, `/taxbaik/admin/login`, `/taxbaik/blog/{slug}`, `/taxbaik/api/auth/login` 검증
7. `/`, `/admin/login`, `/blog/{slug}`, `/api/auth/login` 검증
배포 완료 판정은 위 단계가 모두 성공하고, 배포본 기준 Playwright E2E가 통과했을 때만 한다.
@@ -162,7 +161,7 @@ master 브랜치에 푸시하면 파이프라인이 다음 단계를 수행합
- `DEPLOY_USER`: kjh2064
- `DEPLOY_HOST`: 178.104.200.7
- `DEPLOY_SSH_KEY_B64`: base64로 인코딩한 SSH 개인키
- `TAXBAIK_ADMIN_TEST_PASSWORD`: 배포 검증용 관리자 비밀번호
- `TAXBAIK_ADMIN_TEST_PASSWORD`: 배포 검증용 관리자 비밀번호 (`test_admin / TestAdmin@123456`)
- `Admin__PasswordResetToken`: 관리자 비밀번호 재설정 API용 서버 비밀값
배포는 Gitea Actions CI/CD로만 수행합니다. 수동 배포 경로는 CI 하네스로 차단되어 있으며, 실패 시 [DEPLOYMENT_GUIDE.md](./DEPLOYMENT_GUIDE.md)의 CI 점검 절차를 따릅니다.
@@ -175,12 +174,12 @@ master 브랜치에 푸시하면 파이프라인이 다음 단계를 수행합
| 용도 | Bash | PowerShell |
| --- | --- | --- |
| Public smoke | `E2E_BASE_URL=https://www.taxbaik.com/taxbaik npm run test:e2e:public-smoke` | `$env:E2E_BASE_URL="https://www.taxbaik.com/taxbaik"; npm run test:e2e:public-smoke` |
| Admin smoke | `E2E_BASE_URL=https://www.taxbaik.com/taxbaik npm run test:e2e:admin-smoke` | `$env:E2E_BASE_URL="https://www.taxbaik.com/taxbaik"; npm run test:e2e:admin-smoke` |
| Public smoke | `E2E_BASE_URL=https://www.taxbaik.com npm run test:e2e:public-smoke` | `$env:E2E_BASE_URL="https://www.taxbaik.com"; npm run test:e2e:public-smoke` |
| Admin smoke | `E2E_BASE_URL=https://www.taxbaik.com npm run test:e2e:admin-smoke` | `$env:E2E_BASE_URL="https://www.taxbaik.com"; npm run test:e2e:admin-smoke` |
직접 smoke 스크립트가 필요하면 이 한 줄만 쓰면 됩니다.
`ROOT_URL="https://www.taxbaik.com/" ADMIN_URL="https://www.taxbaik.com/taxbaik/admin/login" bash ./scripts/taxbaik-smoke.sh`
`ROOT_URL="https://www.taxbaik.com/" ADMIN_URL="https://www.taxbaik.com/admin/login" bash ./scripts/taxbaik-smoke.sh`
---