fix: make server connectable without debug mode

This commit is contained in:
Lunaresk 2021-11-30 09:34:15 +01:00
parent 073e2a6475
commit df150b531d
3 changed files with 4 additions and 3 deletions

BIN
client/src/requirements.txt Normal file

Binary file not shown.

View File

@ -1,7 +1,7 @@
from datetime import date
from database import Database
from flask import Flask, abort, request
from flask.json import jsonify
from database import Database
from gevent.pywsgi import WSGIServer
import logging
@ -83,4 +83,5 @@ def group_results(results: tuple) -> dict:
if __name__ == '__main__':
app.run(debug=True)
http_server = WSGIServer(('', 5000), app)
http_server.serve_forever()

BIN
server/src/requirements.txt Normal file

Binary file not shown.