Adios Docs

Deploying Python (Flask)

Deploying Python web servers like Flask, Django, or FastAPI is simple with Adios. We support all major Python versions.

Configuration

Create an adios.yaml file in the root of your project:

name: my-flask-api
runtime: python:3.13
build_cmd:
- pip install -r requirements.txt
start_cmd:
- gunicorn app:app --bind 0.0.0.0:$PORT
env:
  FLASK_ENV: production
  SECRET_KEY: "secret://SECRET_KEY"

Deploy

Before deploying, make sure to set your secrets using the CLI:

$ adios secret set SECRET_KEY my_secure_secret

Then you can run the deployment command:

$ adios up