qast / docs
Site Docs Home

Deployment

qast includes a built-in web server that serves the public site, documentation portal, and local admin UI from one process. The same assets can be deployed to Google Cloud Run for public hosting.

Local server

qast-ui --host 0.0.0.0 --port 8787

Routes

RouteContentNotes
/Public siteProduction target: qast.nuts.services
/docsDocumentation portalAll docs pages
/adminLocal admin UIKeep local-only or behind auth
/api/healthHealth checkReturns {"ok": true}
/api/ui-targetsRoute metadataAvailable UI endpoints

Cloud Run deployment

The ui/ directory contains everything needed to deploy the site to Google Cloud Run:

Deploy

# From the ui/ directory
cd ui
bash deploy.sh

The script will:

  1. Set the GCP project (gnosis-459403)
  2. Enable required APIs (Cloud Run, Cloud Build, Artifact Registry)
  3. Build and push the container via Cloud Build
  4. Deploy to Cloud Run (128 Mi, 0–3 instances, unauthenticated)

Service configuration

SettingValue
Service nameqast-site
Regionus-central1
Memory128 Mi
CPU1
Min instances0 (scales to zero)
Max instances3
Port8080
AuthUnauthenticated (public)

Custom domain

After deployment, map the custom domain:

gcloud run domain-mappings create \
  --service qast-site \
  --domain qast.nuts.services \
  --region us-central1

Then add a DNS CNAME record:

CNAME  qast.nuts.services  →  ghs.googlehosted.com.

SSL certificate provisioning is automatic and takes 15–30 minutes.

Production notes

Created by Rich LeGrand · MIT License