From 48f6fd819aa6e8bd78a458e4102dfbb9a9c34986 Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Sat, 18 Apr 2026 06:04:06 +0000 Subject: [PATCH] fix: expose Flask app at module level for Gunicorn Co-Authored-By: Claude Opus 4.6 (1M context) --- pos/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pos/app.py b/pos/app.py index c6ff072..b026be0 100644 --- a/pos/app.py +++ b/pos/app.py @@ -216,6 +216,8 @@ def create_app(): return app +# Expose at module level for Gunicorn: gunicorn -w 2 -b 0.0.0.0:5001 app:app +app = create_app() + if __name__ == '__main__': - app = create_app() app.run(host='0.0.0.0', port=5001, debug=True)