Fix: Resolver problemas de inicialización y seed de BD
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m4s

Soluciones implementadas:

1. Copiar archivos SQL al contenedor Docker
   - Agregar COPY de server/database/ en Dockerfile
   - Permite que endpoint seed-database encuentre 02_seed.sql

2. Aumentar timeout de conexión PostgreSQL
   - connectionTimeoutMillis: 2000 -> 10000 (10 segundos)
   - Evita errores de autenticación en primera carga

3. Reducir logs en producción
   - Solo mostrar 'Nueva conexión' en desarrollo
   - Reduce ruido en logs de producción
This commit is contained in:
2025-11-21 20:02:35 -06:00
parent fdb01ecb0c
commit e5b2331922
3 changed files with 14 additions and 4 deletions

View File

@@ -23,6 +23,9 @@ WORKDIR /app
# Copy built application from builder stage
COPY --from=builder /app/.output /app/.output
# Copy SQL files for seed endpoint
COPY --from=builder /app/server/database /app/server/database
# Expose port
EXPOSE 3000