mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
12 lines
295 B
Python
12 lines
295 B
Python
|
from web import webApp
|
||
|
from gevent import pywsgi as wsgi
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
app = webApp()
|
||
|
host = app.config.get("HOST")
|
||
|
port = app.config.get("PORT")
|
||
|
print(f"Web server: http://{host}:{port}")
|
||
|
server = wsgi.WSGIServer((host, port), app)
|
||
|
server.serve_forever()
|