frontend: пофайловая загрузка с прогрессом, убран gunicorn
Deploy drhider / validate (push) Waiting to run

This commit is contained in:
2026-07-12 10:33:09 +04:00
parent 2731bc7f09
commit 7fc41aabce
3 changed files with 59 additions and 35 deletions
+1 -10
View File
@@ -52,17 +52,8 @@ def create_app():
app = create_app()
# Штурвал запускает: cd site && python app.py
# Внутри — gunicorn с gevent для долгих LLM-запросов
if __name__ == "__main__":
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",
])
app.run(host="0.0.0.0", port=5000)