Skip to content

Deployments

Every time your app is built and released, FastAPI Cloud records it as a deployment. The Deployments tab in your app shows the full history, the status of each one, and the logs behind it, so you can see what’s live and diagnose anything that failed. For the mechanics of how a deployment is built and rolled out, see How It Works.

A new deployment is created whenever:

For an app with no deployments, the Deployments tab shows Deploy your first version. Run the command from your project directory:

Terminal window
uv run fastapi deploy

Expand Need to install the CLI? for the installation command. For a uv project, add the CLI with:

Terminal window
uv add "fastapi[standard]"

See the deployment guide for the full setup, or deploying an existing project for other installation options.

First deployment guidance with uv run fastapi deploy and the CLI installation instructions collapsed First deployment guidance with uv run fastapi deploy and the CLI installation instructions collapsed
  1. Navigate to your app in the dashboard.
  2. Select Deployments from the sidebar.

Each row shows:

  • A short deployment ID (the first 8 characters) that opens the deployment detail.
  • The commit SHA and message linked to GitHub, or a Source link to the original deployment when an existing image is reused.
  • A traffic percentage badge, such as 100% traffic, showing the share of requests to the app URL routed to that deployment. Traffic allocation is separate from whether replicas are currently running.
  • The current status, with a colored dot and a tooltip explaining it. In-progress deployments also show how long they’ve been running.
  • The trigger, such as a CLI deploy, GitHub push, or configuration change.
  • When the deployment was created, and an Actions menu for redeploying or rolling back.
Deployment history showing a failed build and an older ready deployment still serving traffic with the 100% traffic badge Deployment history showing a failed build and an older ready deployment still serving traffic with the 100% traffic badge

When there are more deployments than the list currently shows, a Load more button appears at the bottom. Click it to view older deployments.

Select any deployment to open its detail view. The header shows the deployment ID (with a copy button), its source commit or trigger, and its status. The breadcrumb identifies the app.

Live deployment detail with Runtime Logs selected and successful HTTP requests Live deployment detail with Runtime Logs selected and successful HTTP requests

Use the deployment sidebar to switch between:

  • Build Logs: The output from installing dependencies and building your app’s image. This is where to look when a deployment fails before it starts serving traffic.
  • Runtime Logs: The logs your app emits once it’s running. This option becomes available once the deployment reaches a running state. For the full logs experience, including live streaming and filtering, see Logs.
  • Configuration: The instance size, autoscaling bounds, and environment variables captured for this deployment. Secret values remain hidden.

A deployment moves through five stages. The status of a deployment tells you which stage it’s in, or where it stopped.

StageWhat happens
UploadYour code is packaged and uploaded to the cloud.
BuildThe upload is extracted and your app’s image is built.
DeployThe built image is rolled out.
VerifyThe new instances are checked for readiness before taking traffic.
ReadyThe deployment is running and serving traffic.

The rollout is gradual and designed for zero downtime: your previous deployment keeps serving traffic until the new one passes verification. If a new deployment fails, your last successful deployment stays live.

The status column reflects where a deployment is in the pipeline. The most common statuses are:

StatusMeaning
Build QueuedWaiting to be picked up by the build system.
Building ImageBuilding a container image from your source code.
Build SkippedNo changed files passed the app’s build filters, or a newer push replaced it before the build started.
Deploying ImageRolling the built image out to the cloud.
Verifying ReadinessChecking that the app is ready to serve traffic.
ReadyReady to serve traffic. Check the traffic badge to see whether requests to the app URL are routed here.
IdleScaled to zero. The deployment wakes on the next request, which may take a few seconds.
Build FailedThe image couldn’t be built. Check the Build Logs.
Verification FailedThe app didn’t pass readiness checks for several minutes. Check the Runtime Logs.
ExpiredAn older deployment that is no longer retained.

To re-run a deployment with the same source, deploy again with fastapi deploy, or push a new commit if your app is linked to a repository. Configuration-only changes don’t need a rebuild: use Save and Redeploy where the change is made to release the update from your current image.