# Cómo subir el proyecto a GitHub (Instalaciones)

Repo: **perfectpoolprojects/instalaciones-crm-perfectpool** · privado.
El `.gitignore` ya excluye `legacy/`, secretos y `**/inc/config.php`.

## 1. Crear el repo (web)
GitHub → organización **perfectpoolprojects** → New repository →
nombre `instalaciones-crm-perfectpool`, **Private**, sin README/.gitignore/license → Create.

## 2. Subir (PowerShell, en la carpeta del proyecto)
```powershell
cd "C:\Users\Hector Gomez\Claude\Projects\Instalaciones CRM-PerfectPool"
git init
git branch -M main
git add .
git commit -m "feat: base Instalaciones + modulo OT (login, mis visitas, formulario)"
git remote add origin https://github.com/perfectpoolprojects/instalaciones-crm-perfectpool.git
git push -u origin main
```

## 3. Verificar que NO se suben secretos (debe imprimir vacío)
```powershell
git ls-files | findstr /I "legacy/ inc/config.php conexion.php config-db .env"
```
Si imprime algo, detente y avísame.

## 4. Desplegar en el servidor
Igual que Control: deploy key (SSH lectura) → clonar → docroot del subdominio a `web/` →
crear `web/modules/ot/inc/config.php` desde el `.example` → correr `scripts/db/migracion_01_ot.sql`
→ crear usuario con `scripts/db/crear_usuario.php`. Actualizar = `git pull`.
