ops: finalize production domain and hardware benchmark tooling
Add /version.json build identity, deploy 16e7930 release markers,
DNS/Named Tunnel prep docs, portable browser benchmark, and replay
stability probe. Keep Quick Tunnel until permanent domain cutover.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,71 +2,60 @@
|
||||
|
||||
Дата: 2026-07-15
|
||||
Ветка: `feature/maximum-demo-realism`
|
||||
Базовый commit этапа 1: `985f7c3`
|
||||
Production bundle после этапа 2: `index-ncgt6PBL.js`
|
||||
|
||||
## Способ деплоя
|
||||
|
||||
Docker-контейнер `owl-web-1` (image `owl-web:<release>`), порт `127.0.0.1:3100→80`.
|
||||
Docker API: `DOCKER_HOST=tcp://127.0.0.1:2375` (из coder-контейнера).
|
||||
Compose-файл: `docker-compose.server.yml` (исторически `-p owl`).
|
||||
Скрипт: `scripts/deploy-production.sh`.
|
||||
|
||||
Публичный доступ в этой среде:
|
||||
|
||||
- Loopback: `http://127.0.0.1:3100/`
|
||||
- Quick tunnel cloudflared: `https://invitations-based-characters-accent.trycloudflare.com/`
|
||||
- `https://arhipovdan.ru/` из контейнера даёт TLS SNI / openresty 404 — DNS/прокси домена вне текущего coder-окружения; проверяйте снаружи.
|
||||
|
||||
## Releases
|
||||
## Current production
|
||||
|
||||
| Поле | Значение |
|
||||
| ---- | -------- |
|
||||
| Old release container | `owl-web-1-backup-20260715-165347` / `…-1712` |
|
||||
| Old bundle | `index-CCdZzxPJ.js` |
|
||||
| New release | `20260715-1712` |
|
||||
| New image | `owl-web:20260715-1712` |
|
||||
| New bundle | `index-ncgt6PBL.js` |
|
||||
| Backup HTML | `releases/backup-pre-*` |
|
||||
| Container | `owl-web-1` |
|
||||
| Image | `owl-web:20260715-2215` |
|
||||
| Bundle | `index-AagIOJbd.js` |
|
||||
| Version endpoint | `/version.json` |
|
||||
| Deployed commit (identity) | `16e7930` |
|
||||
| Release id | `20260715-2215` |
|
||||
| Publish | `127.0.0.1:3100→80` |
|
||||
| Backup container | `owl-web-1-backup-20260715-2215` |
|
||||
|
||||
## Команды
|
||||
## Previous
|
||||
|
||||
| Поле | Значение |
|
||||
| ---- | -------- |
|
||||
| Release | `20260715-1712` |
|
||||
| Bundle | `index-ncgt6PBL.js` |
|
||||
| Commit identity | *(pre-version.json)* |
|
||||
|
||||
## Public access
|
||||
|
||||
| URL | Status |
|
||||
| --- | ------ |
|
||||
| `http://127.0.0.1:3100/` | PASS — commit `16e7930` |
|
||||
| Quick Tunnel | PASS — same commit (kept running) |
|
||||
| `https://arhipovdan.ru/` | BLOCKED_EXTERNAL — openresty / TLS SNI |
|
||||
|
||||
## Deploy command
|
||||
|
||||
```bash
|
||||
export DOCKER_HOST=tcp://127.0.0.1:2375
|
||||
cd /home/coder/arhipovdan/app
|
||||
npm test && npm run build
|
||||
bash scripts/deploy-production.sh 20260715-1712
|
||||
curl -s http://127.0.0.1:3100/ | grep -Eo 'index-[A-Za-z0-9_-]+\.js'
|
||||
EXPECTED_COMMIT=16e7930 bash scripts/deploy-production.sh 20260715-2215
|
||||
```
|
||||
|
||||
## Healthcheck
|
||||
|
||||
| Check | Result |
|
||||
| ----- | ------ |
|
||||
| `GET /` | 200 |
|
||||
| `GET /details` (SPA) | 200 |
|
||||
| Bundle | `index-ncgt6PBL.js` |
|
||||
| Tunnel HTML | same bundle |
|
||||
| `https://arhipovdan.ru/` | **BLOCKED_EXTERNAL** — `PUBLIC_DOMAIN_DIAGNOSTIC.md` |
|
||||
|
||||
## Public smoke
|
||||
|
||||
```bash
|
||||
PLAYWRIGHT_BASE_URL=http://127.0.0.1:3100 npm run test:e2e:production
|
||||
PLAYWRIGHT_BASE_URL=https://invitations-based-characters-accent.trycloudflare.com/ npm run test:e2e:production
|
||||
```
|
||||
Build args inject `BUILD_COMMIT` / `BUILD_BRANCH` / `BUILD_RELEASE` because `.git` is dockerignored.
|
||||
|
||||
## Rollback
|
||||
|
||||
```bash
|
||||
export DOCKER_HOST=tcp://127.0.0.1:2375
|
||||
docker stop owl-web-1 && docker rm owl-web-1
|
||||
docker rename owl-web-1-backup-20260715-1712 owl-web-1
|
||||
docker rename owl-web-1-backup-20260715-2215 owl-web-1
|
||||
docker start owl-web-1
|
||||
```
|
||||
|
||||
Или восстановить HTML из `releases/backup-pre-<release>/`.
|
||||
## Smoke
|
||||
|
||||
## Smoke (tunnel)
|
||||
```bash
|
||||
curl -s http://127.0.0.1:3100/version.json
|
||||
PLAYWRIGHT_BASE_URL=http://127.0.0.1:3100 EXPECTED_COMMIT=16e7930 npm run test:e2e:production
|
||||
PLAYWRIGHT_BASE_URL=https://invitations-based-characters-accent.trycloudflare.com EXPECTED_COMMIT=16e7930 npm run test:e2e:production
|
||||
```
|
||||
|
||||
Подтверждено: CASE 1/10, Jump to case 1–10, Previous/Next, Present, Play Demo, `/details`.
|
||||
Both local and Quick Tunnel: **PASS**.
|
||||
|
||||
Reference in New Issue
Block a user