From 0356e7e210686a9e3c7b3829183e3ac8d92e54b2 Mon Sep 17 00:00:00 2001 From: InviteMe Developer Date: Tue, 1 Sep 2026 11:52:32 +0300 Subject: [PATCH] feat: bind to 0.0.0.0 by default, allow HOST/PORT override Makes the development server accessible from the local network without editing code. HOST and PORT environment variables can still be used to restrict binding. --- run.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 4a2f9ac..42bdf3a 100644 --- a/run.py +++ b/run.py @@ -1,6 +1,10 @@ +import os + from app import create_app app = create_app() if __name__ == "__main__": - app.run(host="127.0.0.1", port=5000, debug=False) + host = os.environ.get("HOST", "0.0.0.0") + port = int(os.environ.get("PORT", "5000")) + app.run(host=host, port=port, debug=False)