diff --git a/site/app.py b/site/app.py index 3eb57ca..32f13dc 100644 --- a/site/app.py +++ b/site/app.py @@ -7,7 +7,7 @@ from flask_sock import Sock app = Flask(__name__) sock = Sock(app) -VERSION = '1.0.10' +VERSION = '1.0.11' @app.route('/') @@ -78,25 +78,4 @@ def upload(): if __name__ == '__main__': - import gunicorn.app.base - - class StandaloneApp(gunicorn.app.base.BaseApplication): - def __init__(self, app, options=None): - self.application = app - self.options = options or {} - super().__init__() - - def load_config(self): - for k, v in self.options.items(): - self.cfg.set(k, v) - - def load(self): - return self.application - - StandaloneApp(app, { - 'bind': '0.0.0.0:5000', - 'workers': 2, - 'worker_class': 'gevent', - 'timeout': 120, - 'keepalive': 75, - }).run() + app.run(host='0.0.0.0', port=5000, debug=False, threaded=True)