Deploy a FastAPI app
With Drone (recommended)
Section titled “With Drone (recommended)”Push your code to GitHub, start a new app, pick the repository and click Deploy with Drone. Or run hivepod deploy in the project folder.
With the FastAPI preset
Section titled “With the FastAPI preset”Pick FastAPI. DockHive installs requirements.txt and serves your app with uvicorn.
from fastapi import FastAPI
app = FastAPI()
@app.get("/")def index(): return {"hello": "DockHive"}fastapiuvicorn[standard]If your app lives somewhere else, set the Start Command, for example:
uvicorn myservice.api:app --host 0.0.0.0 --port $PORTYour interactive API docs are then at https://<your-app>.dockhive.app/docs.
For other Python web frameworks, use the Python preset with a start command that listens on 0.0.0.0:$PORT.