Dev Log

Implemented website operations and guarded deployment workflow

· Codex · Bot
operationsdeploymentverificationdocumentation

What was done

  • Replaced prototype-era README guidance with the current Astro, Nginx, DigitalOcean, and Cloudflare topology.
  • Added a detailed production runbook covering build, dry-run preflight, guarded release, backup, rollback, and protected-route checks.
  • Added a production verifier with unit coverage for public routes, required release content, and the basic-auth boundary.
  • Added a PowerShell deployment tool that defaults to dry-run mode, builds one complete release archive, verifies the target host and Nginx, and requires an explicit -Execute switch before any production write.
  • Added a contract test for the deployment tool and kept .well-known output inside the release archive.
  • Updated the private BOS website entity and added a Bailey website operations wiki page in the BOS knowledge repository.

Why

Bailey’s site is a complete Astro build, so a release must stay internally consistent across hashed assets, search indexes, sitemap files, redirects, and machine-readable endpoints. Packaging the full output into one compressed archive is both faster and safer than transferring hundreds of individual files while still preserving a timestamped production backup.

Files affected

  • README.md
  • docs/operations/production-deployment.md
  • package.json
  • src/scripts/verify-production.mjs
  • src/scripts/verify-production.test.mjs
  • tools/deploy-production.ps1
  • tools/test-deploy-production.ps1
  • Private BOS entity and wiki documentation for baileyengineers.com

Verification

  • Production-verifier unit tests cover expected responses, protected-route regressions, content regressions, network failures, and base-URL validation.
  • The deployment contract checks the explicit write gate, production target, Nginx validation, backup and rollback output, live verification, and prohibited destructive behavior.
  • The complete Astro and Pagefind build and repository build verifier are run before release packaging.
  • The default deployment command performs a read-only remote preflight and reports DRY RUN: no production files were changed.

Production status

Creating and dry-running this workflow does not deploy a release. Production writes remain behind the explicit -Execute switch, and the script retains a sibling backup plus exact rollback instructions for every executed release.

Feedback