add import audit trail, live indicator recompute, reportes endpoints; production hardening
This commit is contained in:
+6
-10
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user