# ⚡ Guía Rápida: Actualizar Terashe desde cd-system

## 🎯 Resumen

Terashe es una copia exacta de cd-system en el servidor. Para actualizarlo con las mejoras del demo, simplemente hacer `git pull`.

---

## ✅ Validación Pre-Pull

```bash
# En el servidor, conectarse a terashe
cd /ruta/a/terashe

# 1. Verificar protecciones
cat .gitattributes | grep "merge=ours"
# Debe mostrar al menos: config/cd-system.php y config/site.php

# 2. Verificar rama
git branch
# Debe estar en: cd-system
```

---

## 🚀 Proceso de Actualización

### Paso 1: Ver Cambios Disponibles

```bash
# Ver qué commits hay disponibles
git fetch origin cd-system
git log HEAD..origin/cd-system --oneline

# Ver qué archivos se actualizarán
git diff HEAD..origin/cd-system --name-only | grep "demo-architecture-2"
```

### Paso 2: Hacer Pull

```bash
# Hacer pull (las protecciones funcionan automáticamente)
git pull origin cd-system
```

### Paso 3: Verificar Protecciones

```bash
# Verificar que config/cd-system.php mantiene configuración de terashe
cat config/cd-system.php | grep "demo"
# Debe mostrar el demo de terashe, NO el de cd-system

# Verificar que config/site.php mantiene identidad de terashe
cat config/site.php | grep -A 2 "'name'"
# Debe mostrar el nombre de terashe
```

### Paso 4: Limpiar Cache

```bash
php artisan config:clear
php artisan cache:clear
php artisan view:clear
```

### Paso 5: Verificar Funcionalidad

Abrir en navegador y verificar:
- ✅ Footer optimizado se muestra correctamente
- ✅ Headers tienen color consistente (#847266)
- ✅ Gallery no muestra título/descripción en hover
- ✅ Logo de terashe se mantiene
- ✅ Configuraciones de terashe se mantienen

---

## 📋 Comando Todo-en-Uno

```bash
cd /ruta/a/terashe && \
git fetch origin cd-system && \
git log HEAD..origin/cd-system --oneline && \
git pull origin cd-system && \
cat config/cd-system.php | grep "demo" && \
php artisan config:clear && php artisan cache:clear && php artisan view:clear
```

---

## ⚠️ Importante

- **Las protecciones funcionan automáticamente** - No necesitas hacer nada especial
- **Los assets de terashe NO se sobrescribirán** - Gracias a `.gitattributes`
- **Las configuraciones de terashe se mantienen** - `config/cd-system.php` y `config/site.php` están protegidos

---

**Última actualización:** Diciembre 2024

