Search forkrail

Search documentation, comparisons, and CLI commands.

APIs & backends
Production ready

Deploy Flask on forkrail

Drop in any Flask WSGI app — no Lambda adapters or custom handlers required. forkrail serves up to 10 concurrent requests per worker via a2wsgi and serves public/ statics from S3.

Adapter
None (built-in a2wsgi + uvicorn shim)
Runtime
Python 3.13 arm64 (also 3.12 & 3.14)
Detection
app.py / index.py / api/index.py defining app
Memory
640 MB default
  • Zero-wrapper WSGI
    Exports standard Flask `app` directly with no Mangum/Zappa
  • 10× concurrent threads
    WSGI runs in 10 threads per warm worker via a2wsgi
  • Static files
    Files in public/ served directly by the router from S3
  • Vercel compatibility
    Reads vercel.json routes, crons, and requirements.txt

1. Entrypoint & dependencies

Define a top-level app = Flask(__name__) in app.py, index.py, server.py, main.py, or wsgi.py (at the root or in src/, app/, api/), and list dependencies in requirements.txt, pyproject.toml, or Pipfile.lock:

from flask import Flask, jsonify
app = Flask(__name__)
@app.get('/api/status')
def status():
return jsonify(ok=True, framework='flask')

2. Deploy to forkrail

Deploy Flask preview and production
forkrail deploy
forkrail deploy --prod

Every HTTP request, print() or app.logger line, and outgoing requests / httpx / urllib call appears in ClickHouse logs under the request’s trace ID.

Ready to deploy your Flask project inside your own AWS account?
Quickstart