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
+1 -1
View File
@@ -12,7 +12,7 @@ if [ "$ALLOW_GIT_DEPLOY" = "true" ] || [ "$ALLOW_GIT_DEPLOY" = "1" ] || [ "$ALLO
fi
# Run DB migrations once before gunicorn workers start.
gosu appuser python /app/init_db.py
gosu appuser python /app/init_db.py || exit 1
export SKIP_DB_INIT=1
exec gosu appuser "$@"