# Getting an API Ready for a Host

A host is a computer that's always on at an address anyone can reach, and a FastAPI project is ready for one when its requirements.txt pins every package, a .python-version file names its Python, its start command runs uvicorn with --host 0.0.0.0 and --port $PORT, its settings come from environment variables, and a /health route says it's working.

![Cheat sheet: Getting an API Ready for a Host](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/d064da16f0934d62808ebdb63fe4ab3e.webp)

- Category: FastAPI
- Level: Journeyman
- Tags: Deployment (web-development), Environment Variable (python), fastapi, Health Check (rest-api), rest-api, Uvicorn, Version Pinning
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/fastapi-deploy-getting-ready-cheat-sheet
