Renombrar FlotillasGPS a ADAN en todo el proyecto

This commit is contained in:
FlotillasGPS Developer
2026-01-21 08:26:01 +00:00
parent 51d78bacf4
commit 6d24ad6f61
37 changed files with 350 additions and 345 deletions

View File

@@ -1,6 +1,6 @@
# Deploy - Sistema de Flotillas
# Deploy - Sistema de ADAN
Scripts y configuraciones para desplegar el sistema de flotillas en produccion.
Scripts y configuraciones para desplegar el sistema de adan en produccion.
## Estructura
@@ -17,8 +17,8 @@ deploy/
│ ├── status.sh # Estado del sistema
│ └── logs.sh # Visor de logs
├── services/ # Servicios systemd
│ ├── flotillas-api.service
│ ├── flotillas-web.service
│ ├── adan-api.service
│ ├── adan-web.service
│ ├── mediamtx.service
│ └── cloudflared.service
├── cloudflare/ # Configuracion tunnel
@@ -44,15 +44,15 @@ deploy/
```bash
# Crear VM automaticamente
./deploy/proxmox/vm-setup.sh --vmid 200 --name flotillas --memory 8192
./deploy/proxmox/vm-setup.sh --vmid 200 --name adan --memory 8192
```
### 2. En Ubuntu
```bash
# Clonar repositorio
git clone https://github.com/tuorg/flotillas.git /opt/flotillas
cd /opt/flotillas
git clone https://github.com/tuorg/adan.git /opt/adan
cd /opt/adan
# Ejecutar instalador
sudo ./deploy/scripts/install.sh
@@ -101,18 +101,18 @@ cloudflared tunnel login
3. Crear tunnel:
```bash
cloudflared tunnel create flotillas
cloudflared tunnel create adan
```
4. Configurar DNS:
```bash
cloudflared tunnel route dns flotillas flotillas.tudominio.com
cloudflared tunnel route dns adan adan.tudominio.com
```
5. Copiar config y habilitar servicio:
```bash
mkdir -p /etc/cloudflared
cp /opt/flotillas/deploy/cloudflare/config.yml /etc/cloudflared/
cp /opt/adan/deploy/cloudflare/config.yml /etc/cloudflared/
systemctl enable cloudflared
systemctl start cloudflared
```
@@ -144,7 +144,7 @@ Backups automaticos: diariamente a las 3 AM (configurado por install.sh)
./deploy/scripts/restore.sh --latest
# Restaurar backup especifico
./deploy/scripts/restore.sh --db /var/backups/flotillas/daily/flotillas_20240115_db.sql.gz
./deploy/scripts/restore.sh --db /var/backups/adan/daily/adan_20240115_db.sql.gz
```
### Actualizar
@@ -164,8 +164,8 @@ Backups automaticos: diariamente a las 3 AM (configurado por install.sh)
| Servicio | Puerto | Descripcion |
|----------|--------|-------------|
| flotillas-api | 8000 | Backend FastAPI |
| flotillas-web | 3000 | Frontend |
| adan-api | 8000 | Backend FastAPI |
| adan-web | 3000 | Frontend |
| postgresql | 5432 | Base de datos |
| redis | 6379 | Cache |
| traccar | 5055 | GPS Server |
@@ -176,17 +176,17 @@ Backups automaticos: diariamente a las 3 AM (configurado por install.sh)
```bash
# Estado
systemctl status flotillas-api
systemctl status adan-api
# Reiniciar
systemctl restart flotillas-api
systemctl restart adan-api
# Logs
journalctl -u flotillas-api -f
journalctl -u adan-api -f
# Habilitar/Deshabilitar
systemctl enable flotillas-api
systemctl disable flotillas-api
systemctl enable adan-api
systemctl disable adan-api
```
## Seguridad
@@ -217,13 +217,13 @@ systemctl disable flotillas-api
```bash
# Ver logs
journalctl -u flotillas-api -n 100
journalctl -u adan-api -n 100
# Verificar puerto
ss -tlnp | grep 8000
# Verificar base de datos
psql -h localhost -U flotillas -d flotillas -c "SELECT 1"
psql -h localhost -U adan -d adan -c "SELECT 1"
```
### Traccar no recibe datos
@@ -243,19 +243,19 @@ nc -zv localhost 5055
```bash
# Ver uso de memoria por servicio
systemctl status flotillas-api --no-pager | grep Memory
systemctl status adan-api --no-pager | grep Memory
# Reducir workers de API
# Editar /etc/systemd/system/flotillas-api.service
# Editar /etc/systemd/system/adan-api.service
# Cambiar --workers 4 a --workers 2
systemctl daemon-reload
systemctl restart flotillas-api
systemctl restart adan-api
```
## Credenciales
Las credenciales se generan durante la instalacion y se guardan en:
- `/root/flotillas-credentials.txt`
- `/root/adan-credentials.txt`
**IMPORTANTE**: Guardar en lugar seguro y eliminar el archivo despues.