Deploy FastAPI on Deplexo
Deplexo detects FastAPI from your dependencies and configures uvicorn as the ASGI server.
How it works
- Push your repo to GitHub, GitLab, Bitbucket, or Codeberg.
- Deplexo reads
requirements.txtorpyproject.toml, detects the FastAPI dependency, and sets uvicorn as the start command. - Your app starts on its subdomain. Build and runtime logs stream to the dashboard.
Configuration
Add deplexo.yaml to your repo root. Adjust the app module path to match your project.
framework: python
install: pip install -r requirements.txt
start: uvicorn --host 0.0.0.0 --port $PORT main:app
port: 8000What you get
- Automatic subdomain (your-app.deplexo.com) provisioned on first deploy.
- Build logs streamed live from the worker.
- Runtime logs accessible from the Logs tab.
- Environment variables managed in the dashboard, encrypted at rest, injected at runtime.
- Git webhooks trigger automatic redeploys on push.