Flask app running

Flask 3.0.3 · Werkzeug 3.0.4 · Python 3.12.5

This default page is served from a freshly initialised project. Define your first route handler to replace it. The application factory pattern is recommended for production deployments, with one factory per blueprint.

If you see this page in production, the WSGI worker is probably routing every URL to a missing-blueprint fallback. Check that create_app() registers every blueprint expected by your nginx config.
from flask import Flask
app = Flask(__name__)

@app.route("/")
def index():
    return "Hello from svc-flask-ams-3"

@app.route("/healthz")
def healthz():
    return {"status": "ok"}, 200

@app.errorhandler(404)
def not_found(e):
    return {"error": "not_found"}, 404

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=5000)
MethodRuleEndpoint
GET/index
GET/healthzhealthz
GET/static/<path:filename>static
0.0.0.0:5000
gunicorn -w 4 -b 0.0.0.0:5000 wsgi:app (4 sync workers, sync IO)
FLASK_ENV=production · FLASK_DEBUG=0

svc-flask-ams-3.lab.example · started Tue 18 Nov 09:41 CET · serving via uWSGI fastcgi proxy