Fix empty reply: remove gunicorn preload, isolate DB init from workers

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-06 23:00:43 +03:00
parent 5353c82066
commit e334a7b32c
4 changed files with 32 additions and 18 deletions
+12
View File
@@ -0,0 +1,12 @@
bind = "0.0.0.0:8000"
workers = 2
timeout = 120
accesslog = "-"
errorlog = "-"
capture_output = True
def post_fork(server, worker):
from app import db
db.engine.dispose()