Modifiy wsgi for listen the Address and port specified in config.py
This commit is contained in:
parent
6a4089243a
commit
685502aec7
7
wsgi.py
7
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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user