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.
What Creates a Deployment?
Section titled “What Creates a Deployment?”A new deployment is created whenever:
- You run
fastapi deployfrom the CLI. - A push lands on the connected branch of a linked repository (see GitHub Integration).
- You choose Save and Redeploy after changing environment variables, autoscaling bounds, or a connected integration. This re-applies the new configuration by releasing a fresh deployment from your app’s current image, without rebuilding from source.
Your First Deployment
Section titled “Your First Deployment”For an app with no deployments, the Deployments tab shows Deploy your first version. Run the command from your project directory:
uv run fastapi deployExpand Need to install the CLI? for the installation command. For a uv project, add the CLI with:
uv add "fastapi[standard]"See the deployment guide for the full setup, or deploying an existing project for other installation options.
Deployment History
Section titled “Deployment History”- Navigate to your app in the dashboard.
- 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.
When there are more deployments than the list currently shows, a Load more button appears at the bottom. Click it to view older deployments.
Deployment Detail
Section titled “Deployment Detail”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.
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.
Deployment Stages
Section titled “Deployment Stages”A deployment moves through five stages. The status of a deployment tells you which stage it’s in, or where it stopped.
| Stage | What happens |
|---|---|
| Upload | Your code is packaged and uploaded to the cloud. |
| Build | The upload is extracted and your app’s image is built. |
| Deploy | The built image is rolled out. |
| Verify | The new instances are checked for readiness before taking traffic. |
| Ready | The 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.
Deployment Statuses
Section titled “Deployment Statuses”The status column reflects where a deployment is in the pipeline. The most common statuses are:
| Status | Meaning |
|---|---|
Build Queued | Waiting to be picked up by the build system. |
Building Image | Building a container image from your source code. |
Build Skipped | No changed files passed the app’s build filters, or a newer push replaced it before the build started. |
Deploying Image | Rolling the built image out to the cloud. |
Verifying Readiness | Checking that the app is ready to serve traffic. |
Ready | Ready to serve traffic. Check the traffic badge to see whether requests to the app URL are routed here. |
Idle | Scaled to zero. The deployment wakes on the next request, which may take a few seconds. |
Build Failed | The image couldn’t be built. Check the Build Logs. |
Verification Failed | The app didn’t pass readiness checks for several minutes. Check the Runtime Logs. |
Expired | An older deployment that is no longer retained. |
Redeploying
Section titled “Redeploying”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.