page:blueprints:publishing:documentation site:laravel

Publishing: Documentation Site Using Laravel

Summary

A documentation site blueprint for publishing built with Laravel on Ample.
Domain schema:

Representative Queries

Workflow Steps

  1. Model the publishing domain
    Create the tables titles, editions, customer_workspaces, customer_assets, state_transitions. The catalog of titles lives in titles; keep the sensitive classes (unreleased manuscripts, royalty statements, customer license keys) out of this schema.
  2. Workflow step 1
    Model versioned documents with a state machine (draft, review, published) scoped to a product version
  3. Workflow step 2
    Publish assets for released versions to the CDN bucket
  4. Workflow step 3
    Serve only published versions publicly
  5. Workflow step 4
    Deploy and verify the version list and a published page
  6. Deploy
    Run the synchronous deploy once and read the result. Re-running with no change is a no-op.
    ample deploy . --name --public --env S3_ENDPOINT=... --env S3_REGION=... --env S3_BUCKET=... --env S3_ACCESS_KEY_ID=... --env S3_SECRET_ACCESS_KEY=... --env CDN_PUBLIC_URL=...
  7. Verify
    Run the pattern self-test(s) from the example (/p/relational-records) and your own acceptance checks for the publishing workflow.
    ample logs --kind build

Limitations

Success Checks

Cost Estimate

Components

Note

Always-on monthly price of the tested sizes; apps and databases auto-pause when idle. Buckets are allocation-priced per quota and not included.

Next Actions

-