mirror of
https://github.com/babysor/MockingBird.git
synced 2024-11-21 01:13:57 +08:00
ddd478c0ad
* 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>
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()
|