# LineUp France - Prod Validation Command Sheet

Use this file during production validation when you need the exact commands quickly.

## 1. Infra gate

```bash
cd /home/<CPANEL_USER>/public_html
./scripts/preflight_cpanel.sh
./scripts/smoke_web.sh https://lineupfrance.com
```

## 2. Basic HTTP sanity

```bash
curl -sS https://lineupfrance.com/health
curl -sS https://lineupfrance.com/api/health
curl -sS -I https://lineupfrance.com/bo/login | sed -n '1,12p'
```

## 3. PATCH/DELETE passthrough spot check

```bash
curl -sS -X PATCH https://lineupfrance.com/api/auth/login \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

Expected:
- error mentioning `PATCH`
- not `GET method is not supported`

## 4. Local unified validation before prod decision

```bash
cd /Users/gsent/Documents/app
./scripts/local_validation_suite.sh
```

## 5. Local client real API scenario only

```bash
cd /Users/gsent/Documents/untitled2/apps/client_app
./scripts/e2e_real_client_api.sh
```

## 6. Local liner real API scenario only

```bash
cd /Users/gsent/Documents/untitled2/apps/liner_app
./scripts/e2e_real_liner_api.sh
```

## 7. Local BO real API scenario only

```bash
cd /Users/gsent/Documents/app
./scripts/e2e_local_lineup.sh
```

## 8. Queue processing check on local backend

```bash
cd /Users/gsent/Documents/app
APP_ENV=local \
DB_CONNECTION=sqlite \
DB_DATABASE=/Users/gsent/Documents/app/database/database.sqlite \
php artisan queue:work --once --stop-when-empty
```

## 9. QA liner2 setup local

```bash
cd /Users/gsent/Documents/app
APP_ENV=local \
DB_CONNECTION=sqlite \
DB_DATABASE=/Users/gsent/Documents/app/database/database.sqlite \
./scripts/setup_qa_liner2.sh
```

## 10. Useful prod smoke probes

```bash
for p in / /health /bo/login /api/auth/me; do
  echo "--- $p"
  curl -sS -I "https://lineupfrance.com$p" | sed -n '1,12p'
done
```

## 11. Prepare a prod validation workspace

```bash
cd /Users/gsent/Documents/app
./scripts/init_prod_validation_workspace.sh
```

## 12. Evidence docs to fill during prod validation

- `docs/qa/prod-e2e-run-sheet.md`
- `docs/qa/prod-validation-evidence-log-template.md`
- `docs/qa/final-go-no-go-decision-template.md`
- `docs/qa/prod-validation-triage-matrix.md`

## 12. Archive the validation workspace

```bash
cd /Users/gsent/Documents/app
./scripts/archive_prod_validation_workspace.sh /Users/gsent/Documents/app/var/prod-validation/2026-03-12
```

## 13. Summarize the validation workspace

```bash
cd /Users/gsent/Documents/app
./scripts/summarize_prod_validation_workspace.sh /Users/gsent/Documents/app/var/prod-validation/2026-03-12
```

## 14. Finalize and archive the validation workspace

```bash
cd /Users/gsent/Documents/app
./scripts/finalize_prod_validation_workspace.sh /Users/gsent/Documents/app/var/prod-validation/2026-03-12
```

## 14. If final GO is issued

```bash
cd /Users/gsent/Documents/app
git status --short
git tag -a lineup-france-rc-20260312-1 -m "LineUp France RC 2026-03-12"
git push origin lineup-france-rc-20260312-1
```
