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)