Deploy FastAPI on Deployxa.

Deploy async FastAPI services with pip or Poetry builds, Uvicorn, managed PostgreSQL and HTTPS.

All frameworks

01 / Quickstart

Deploy from your terminal.

Install the CLI and deploy the FastAPI project in your current directory, or connect the repository in the console for push-to-deploy.

  • Typical database: PostgreSQL or Redis
  • Build and start commands can be overridden
  • Secrets stay out of build logs
deploy · fastapi
$ npm install -g @deployxa/cli$ deployxa login$ deployxa deploy

02 / Guide

How FastAPI goes to production.

  1. 01 /

    Install

    Dependencies from requirements.txt or pyproject.toml install in an isolated build.

  2. 02 /

    Start

    Uvicorn serves the ASGI app on the configured port.

  3. 03 /

    Go live

    Interactive /docs is reachable over HTTPS as soon as the release passes its health check.

03 / Configuration

Environment variables.

Set these in project settings. Values are never written to build logs.

Recommended environment variables for FastAPI
VariablePurposeExample
DATABASE_URLPostgreSQL connection URLpostgresql://...

04 / Included

What every deploy gets.

  • Stack detection

    Deployxa reads your repository and picks the runtime, build and start commands. Override any of them in project settings.

  • Isolated builds

    Every push builds in its own sandbox with cached dependencies and layers.

  • Managed databases

    Attach PostgreSQL, MySQL or Redis and the connection details are injected as environment variables.

  • HTTPS by default

    Every deploy gets a deployxa.online URL with a Let's Encrypt certificate; custom domains too.

  • Health-checked releases

    Traffic only switches to a release that passes its health check, and earlier releases stay available for rollback.

  • Push to deploy

    Connect GitHub, GitLab or Bitbucket and each push to your branch ships a new release.

05 / FAQ

FastAPI questions.

How do I run Alembic migrations?

Run alembic upgrade head as part of the release so the schema is ready before traffic switches.

Ready when you are

Ship your FastAPI app.

Connect a repository and get a live HTTPS URL.

See pricing