Web server (#94)

* Init App

* init server.py (#93)

* init server.py

* Update requirements.txt

Add requirement

Co-authored-by: auau <auau@test.com>
Co-authored-by: babysor00 <babysor00@gmail.com>

* Run web.py!

Run web.py!

Co-authored-by: balala <Ozgay@users.noreply.github.com>
Co-authored-by: auau <auau@test.com>
This commit is contained in:
Vega
2021-09-21 16:56:12 +08:00
committed by GitHub
parent 4178416385
commit ddd478c0ad
17 changed files with 27546 additions and 8 deletions

11
web.py Normal file
View File

@@ -0,0 +1,11 @@
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()