Skip to main content

Runtime environments and deployment units

This reference maps local services to their production counterparts. New contributors should start with Run the development environment. For production changes, check both this layout and the operational guide linked below.

Local Docker Compose

The API and worker start after migrate completes. The web-dev profile adds Vite HMR without changing the API, database, or queue setup.

Production

Deployment units

TargetMethod
FrontendCloudflare Pages Git integration
APIcd apps/api && npm run deploy
DatabaseDATABASE_URL=... npm run db:migrate
WorkerPush a container image to ECR and update the Lambda image
Cloudflare bindingsWrangler (wrangler.jsonc)
Hyperdrive cache / R2 CORScloudflare-resources.yml with manual approval
AWS worker infrastructureTerraform
DocumentationGitHub Actions CD publishes both languages to Cloudflare Worker videoq-docs after relevant changes reach main and CI succeeds

These commands are entry points for each task. Also check the steps and ordering in .github/workflows/cd.yml for the production API, worker, and database. Publishing code that uses a new column before migrating can cause failures against the old database.

See infra/DEPLOY.md for details. The documentation site uses a dedicated Worker at docs.videoq.jp, with Japanese at /ja/. Changes to the documentation, translations, or site configuration are published automatically after CI succeeds on main. You can also publish the current working tree manually with npm run deploy:docs. See the docs deployment instructions.