add import audit trail, live indicator recompute, reportes endpoints; production hardening

This commit is contained in:
Roberto Treviño Cervantes
2026-10-30 11:19:30 -06:00
parent 168edb30f5
commit 2b2c290f58
74 changed files with 4095 additions and 1782 deletions
+6 -10
View File
@@ -17,17 +17,13 @@ if [ "$1" = "indicadores" ]; then
exec uv run --no-sync python -m webapi.indicadores_vivos
fi
# --no-sync: the image's environments were synced at build time; syncing at
# startup would try to reach the package index (and pull dev deps).
cd /app/Persistance
uv run --no-sync alembic -c persistance/cacu/alembic.ini upgrade head
uv run --no-sync alembic -c persistance/cama/alembic.ini upgrade head
uv run --no-sync alembic -c persistance/tea/alembic.ini upgrade head
uv run --no-sync alembic -c persistance/governance/alembic.ini upgrade head
cd /app/WebApi
# Container's own network namespace — no AirPlay conflict here, keep it on
# the port the Dockerfile EXPOSEs and docker-compose.yml maps from.
# --no-sync: the environment was synced at build time; syncing at startup
# would try to reach the package index (and pull dev deps).
for domain in cacu cama tea governance; do
uv run --no-sync alembic -c "/app/Persistance/persistance/$domain/alembic.ini" upgrade head
done
PORT="${PORT:-5000}"
# gunicorn, not Flask's development server. Long timeout: OCR over a
# multi-page scanned PDF runs inside a single request.