From 685502aec77cc37b22224c6d402b1637320480dc Mon Sep 17 00:00:00 2001 From: kitoy Date: Sun, 21 Dec 2025 19:29:49 +0100 Subject: [PATCH] Modifiy wsgi for listen the Address and port specified in config.py --- wsgi.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wsgi.py b/wsgi.py index 290129c..d49f30e 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,6 +1,11 @@ from gevent.pywsgi import WSGIServer from pywallter import create_app + + app = create_app() -http_server = WSGIServer(("127.0.0.1", 8000), app) +app.config.from_pyfile('config.py') + + +http_server = WSGIServer((app.config['HOST'], int(app.config['PORT']) ), app) http_server.serve_forever()