Verified framework

Managed FastAPI hosting

Deploy a FastAPI application on a managed server as a persistent, supervised process.

Connect your GitHub repository from your dashboard, pick the branch and deploy it. See "How to deploy a web app from GitHub" for the exact steps.

Supported versions
3.12, 3.11
Runtime mode
Runs as a managed, always-on process

Managed HTTPS

TLS certificates are issued and renewed automatically.

Environment variables

Configure your ASGI module and secrets from your dashboard.

How this deployment works

How we detect your project

  • A requirements.txt file in the repository
  • requirements.txt mentions "fastapi"

What happens on every deploy

  • Build step pip install --no-input --target=/app/.python-packages -r requirements.txt
  • Start command uvicorn --host 0.0.0.0 --port 8000 $ASGI_MODULE
  • The app listens on port 8000
  • A new release goes live only after / answers the health check

Environment variables

  • Python import path to the ASGI application, e.g. "main:app". (you set it before the first deploy) ASGI_MODULE

Minimum resources

  • 0.25 vCPU share, 256 MB memory, 1000 MB storage

Related pages

Frequently asked questions

Which ASGI server runs my app?

The deployment pipeline runs your app as a managed process behind our reverse proxy.