# Reconstruye Don Marco con Docker (incluye Historial de Gestiones v1.2.0) # Ejecutar en PowerShell desde la carpeta del proyecto: # .\docker-update.ps1 Write-Host "=== Don Marco - Actualizacion Docker v1.2.0 ===" -ForegroundColor Cyan docker compose down if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } Write-Host "Reconstruyendo imagenes SIN cache..." -ForegroundColor Yellow docker compose build --no-cache if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } Write-Host "Iniciando contenedores..." -ForegroundColor Yellow docker compose up -d if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } Write-Host "" Write-Host "Verificando API..." -ForegroundColor Yellow Start-Sleep -Seconds 5 try { $health = Invoke-RestMethod -Uri "http://localhost:4000/api/health" -Method GET Write-Host "Backend OK - version: $($health.version)" -ForegroundColor Green Write-Host "Features: $($health.features -join ', ')" -ForegroundColor Green } catch { Write-Host "No se pudo verificar /api/health. Revise: docker compose logs backend" -ForegroundColor Red } Write-Host "" Write-Host "Listo. Abra en el navegador:" -ForegroundColor Green Write-Host " http://localhost" -ForegroundColor White Write-Host " Usuario: JEFE | Contrasena: MACAN" -ForegroundColor White Write-Host " Menu: pestana 'Administracion' > seccion Cierre de gestion" -ForegroundColor White Write-Host " Pie de pagina debe decir: v1.2.0 — Historial de gestiones (Docker)" -ForegroundColor White Write-Host " Cada planilla tiene barra lateral con gestiones anteriores (solo lectura)" -ForegroundColor White