fix: вернул gunicorn+gevent — без них Flask dev server не держит долгие LLM-запросы
Deploy drhider / validate (push) Waiting to run

This commit is contained in:
2026-07-12 10:18:04 +04:00
parent 724124b3fc
commit 2731bc7f09
2 changed files with 12 additions and 2 deletions
+2
View File
@@ -1,4 +1,6 @@
flask
gunicorn
gevent
python-docx
pdfplumber
httpx
+10 -2
View File
@@ -52,9 +52,17 @@ def create_app():
app = create_app()
# Штурвал запускает: cd site && python app.py
# Нужен app.run() чтобы процесс слушал порт
# Внутри — gunicorn с gevent для долгих LLM-запросов
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, threaded=True)
import subprocess, sys
subprocess.run([
sys.executable, "-m", "gunicorn", "app:app",
"--bind", "0.0.0.0:5000",
"--worker-class", "gevent",
"--workers", "1",
"--worker-connections", "1000",
"--timeout", "300",
])