platform

How builds run, what triggers them, and how to roll back.

Deployments & rollbacks

What triggers a build

TriggerWhen it fires
manualYou press Deploy or Redeploy in the console.
webhookA push arrives from the connected GitHub App.
previewA pull request opens or updates.
redeployYou re-run a previous deployment's exact revision.
agentThe AI agent opened the change.

Lifecycle

A deployment moves through PENDING → BUILDING → RUNNING, or FAILED. When a new deployment succeeds, the previous one becomes SUPERSEDED but its image is kept, which is what makes rollback instant.

Rollback

Open Project → Deployments, pick the deployment you want to restore and choose Redeploy. The platform reuses the stored image digest, so the rollback skips the build entirely.

Logs

Build logs stream live from the build job; runtime logs stream from the pod. Both are available over the API:

bash
curl -N "https://api.tngat.com/api/builder/deployments/{{deploymentId}}/logs/stream" \
  -H "Authorization: Bearer $TNGAT_API_KEY"

Metrics

CPU, memory and restart counts are collected per deployment and surface in Project → Metrics and in the organization Usage page, where they feed the billing meter.