Changes: - Fix ecosystem.config.js path (line 138) - Add production scripts (update-production.sh, diagnose-production.sh) - Add PRODUCTION-UPDATE.md with quick instructions - Add reference to production deployment documentation Analysis reports: - PLAN-SINCRONIZACION-WORKSPACES-2025-12-18.md - Master sync plan - ANALISIS-CONFIGURACION-PRODUCCION-2025-12-18.md - Config analysis - PLAN-IMPLEMENTACION-SINCRONIZACION-2025-12-18.md - Implementation plan - VALIDACION-PLAN-SINCRONIZACION-2025-12-18.md - Validation report Result: Both workspaces (NUEVO/VIEJO) are now 100% synchronized - DDL: 100% identical - Seeds: 100% identical - Backend: 100% synchronized - Frontend: 100% synchronized 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
REFERENCIA: Deployment en Produccion
Ubicacion de Documentacion Completa:
La documentacion completa para el agente de produccion se encuentra en el workspace de produccion (VIEJO), ya que es donde se ejecuta el deployment.
Archivos en Workspace de Produccion
~/workspace-old/wsl-ubuntu/workspace/workspace-gamilit/gamilit/projects/gamilit/
├── PROMPT-AGENTE-PRODUCCION.md # Prompts para usar con el agente
├── PRODUCTION-UPDATE.md # Instrucciones rapidas post-pull
├── docs/95-guias-desarrollo/
│ └── GUIA-DEPLOYMENT-AGENTE-PRODUCCION.md # Guia completa de deployment
└── scripts/
├── update-production.sh # Script automatizado de deployment
└── diagnose-production.sh # Script de diagnostico
Resumen del Proceso
- Backup: BD + configs a
/home/gamilit/backups/TIMESTAMP/ - Pull:
git reset --hard origin/main - Restaurar: Configs desde backup
- Recrear BD:
./create-database.sh - Build:
npm install && npm run build - Deploy:
pm2 start ecosystem.config.js - HTTPS: Certbot + Nginx (si aplica)
- Validar:
./scripts/diagnose-production.sh
Prompt Basico para Agente
Ejecuta el deployment de GAMILIT siguiendo el procedimiento en
docs/95-guias-desarrollo/GUIA-DEPLOYMENT-AGENTE-PRODUCCION.md
1. Backup BD y configs
2. pm2 stop all
3. git reset --hard origin/main
4. Restaurar configs
5. Recrear BD
6. Build backend y frontend
7. pm2 start
8. Validar
Ejecuta paso a paso mostrando outputs.
Ver Documentacion Completa
Para ver la guia completa, acceder al workspace de produccion:
cat ~/workspace-old/wsl-ubuntu/workspace/workspace-gamilit/gamilit/projects/gamilit/docs/95-guias-desarrollo/GUIA-DEPLOYMENT-AGENTE-PRODUCCION.md
Este archivo es solo una referencia. La documentacion real esta en el workspace de produccion.