fix: make server connectable without debug mode
This commit is contained in:
parent
073e2a6475
commit
df150b531d
BIN
client/src/requirements.txt
Normal file
BIN
client/src/requirements.txt
Normal file
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
from datetime import date
|
from database import Database
|
||||||
from flask import Flask, abort, request
|
from flask import Flask, abort, request
|
||||||
from flask.json import jsonify
|
from flask.json import jsonify
|
||||||
from database import Database
|
from gevent.pywsgi import WSGIServer
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
||||||
@ -83,4 +83,5 @@ def group_results(results: tuple) -> dict:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True)
|
http_server = WSGIServer(('', 5000), app)
|
||||||
|
http_server.serve_forever()
|
||||||
|
|||||||
BIN
server/src/requirements.txt
Normal file
BIN
server/src/requirements.txt
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user