Modifiy wsgi for listen the Address and port specified in config.py

This commit is contained in:
kitoy 2025-12-21 19:29:49 +01:00
parent 6a4089243a
commit 685502aec7

View File

@ -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()