PEP-172: выкатка одной командой с обязательными проверками и откатом; агентам нельзя в копию живого сайта #163

Merged
peppa-bot merged 0 commits from refs/pull/163/head into main 2026-11-16 16:24:27 +00:00
peppa-bot commented 2026-11-16 14:08:04 +00:00 (Migrated from git.telecom.quest)

scripts/live-deploy.sh [--wait] [<sha>] — the only way to update the live site:

  • lock against parallel runs; the live copy must be main with no tracked changes;
  • every CI check of the target green (lint, typecheck, build, test), --wait waits for them;
  • migrations the database lacks → peppa db backup + peppa db migrate;
  • next build with the old build kept (APFS clone) — a failure restores code and build, nothing restarts;
  • restart web/watchdog/bot, /api/health must report the target commit with every service up;
  • main pages answer 200 for the test user and the web log has no server errors — otherwise rollback.
  • Installs a pre-commit hook in the live copy: no commits there.

Runner: no agent starts in the directory Peppa itself runs from (isLiveCheckout); a free runner of PEP gets a worktree. Test live-checkout.test.ts; runner, worktree and session tests pass.

🤖 Generated with Claude Code

`scripts/live-deploy.sh [--wait] [<sha>]` — the only way to update the live site: - lock against parallel runs; the live copy must be `main` with no tracked changes; - every CI check of the target green (lint, typecheck, build, test), `--wait` waits for them; - migrations the database lacks → `peppa db backup` + `peppa db migrate`; - `next build` with the old build kept (APFS clone) — a failure restores code and build, nothing restarts; - restart web/watchdog/bot, `/api/health` must report the target commit with every service up; - main pages answer 200 for the test user and the web log has no server errors — otherwise rollback. - Installs a pre-commit hook in the live copy: no commits there. Runner: no agent starts in the directory Peppa itself runs from (`isLiveCheckout`); a free runner of PEP gets a worktree. Test `live-checkout.test.ts`; runner, worktree and session tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: peppa-bot/peppa#163
No description provided.