From bdac2eecce769c50912fc9bb16bf759ee22f000d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 10 Jul 2026 23:44:45 +0400 Subject: [PATCH] cleanup: revert to Werkzeug, remove echo, bump to 1.0.8 --- requirements.txt | 1 - site/app.py | 25 ++----------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/requirements.txt b/requirements.txt index f51d321..e4a286c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ flask gunicorn -gevent diff --git a/site/app.py b/site/app.py index 3b63b24..598ccbf 100644 --- a/site/app.py +++ b/site/app.py @@ -4,7 +4,7 @@ from flask import Flask, render_template, request app = Flask(__name__) -VERSION = '1.0.9' +VERSION = '1.0.8' @app.route('/') @@ -51,25 +51,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)