treker-po-trenirovkam-i-pit.../openspec/specs/deploy/spec.md
Peppa 431ccc3b81
All checks were successful
peppa/lint lint: success за 0с
peppa/test test: success за 0с
ci / checks (pull_request) Successful in 6s
deploy / deploy (pull_request) Successful in 13s
TPTIP-11: убрать страницу-заглушку, пустые поля мастера, пояснение на втором шаге
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 11:25:18 +05:00

33 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# deploy Specification
## Purpose
TBD - created by archiving change tptip-6-open-by-link. Update Purpose after archive.
## Requirements
### Requirement: Проверка живости
Сервер продукта SHALL слушать порт из переменной `PORT` и отвечать 200 на `GET /healthz`.
#### Scenario: Сервер жив
- **GIVEN** сервер запущен с `PORT=3000`
- **WHEN** приходит запрос `GET /healthz`
- **THEN** ответ — 200 с телом «ok»
#### Scenario: Неизвестный адрес
- **GIVEN** сервер запущен
- **WHEN** приходит запрос `GET /.peppa/project.json`
- **THEN** ответ — 404
### Requirement: Трекер открывается по ссылке
Главная страница SHALL показывать приложение; страницы-заглушки с описанием нет.
#### Scenario: Приложение есть
- **GIVEN** в образе есть `index.html`
- **WHEN** пользователь открывает `/`
- **THEN** открывается трекер
#### Scenario: Страницы описания нет
- **GIVEN** сервер запущен
- **WHEN** пользователь открывает `/about.html`
- **THEN** ответ — 404