feat: Complete ATLAS system installation and API fixes
## Backend Changes - Add new API endpoints: combustible, pois, mantenimiento, video, configuracion - Fix vehiculos endpoint to return paginated response with items array - Add /vehiculos/all endpoint for non-paginated list - Add /geocercas/all endpoint - Add /alertas/configuracion GET/PUT endpoints - Add /viajes/activos and /viajes/iniciar endpoints - Add /reportes/stats, /reportes/templates, /reportes/preview endpoints - Add /conductores/all and /conductores/disponibles endpoints - Update router.py to include all new modules ## Frontend Changes - Fix authentication token handling (snake_case vs camelCase) - Update vehiculosApi.listAll to use /vehiculos/all - Fix FuelGauge component usage in Combustible page - Fix chart component exports (named + default exports) - Update API client for proper token refresh ## Infrastructure - Rename services from ADAN to ATLAS - Configure Cloudflare tunnel for atlas.consultoria-as.com - Update systemd service files - Configure PostgreSQL with TimescaleDB - Configure Redis, Mosquitto, Traccar, MediaMTX ## Documentation - Update installation guides - Update API reference - Rename all ADAN references to ATLAS Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# ============================================
|
||||
# Sistema de ADAN - Script de Actualizacion
|
||||
# Sistema de ATLAS - Script de Actualizacion
|
||||
# ============================================
|
||||
# Actualiza la aplicacion a la ultima version
|
||||
#
|
||||
@@ -29,7 +29,7 @@ NC='\033[0m'
|
||||
# ---------------------------------------------
|
||||
# Variables
|
||||
# ---------------------------------------------
|
||||
INSTALL_DIR="${INSTALL_DIR:-/opt/adan}"
|
||||
INSTALL_DIR="${INSTALL_DIR:-/opt/atlas}"
|
||||
REPO_BRANCH="${REPO_BRANCH:-main}"
|
||||
BACKUP_BEFORE_UPDATE=true
|
||||
FORCE_UPDATE=false
|
||||
@@ -308,11 +308,11 @@ restart_services() {
|
||||
log_info "Reiniciando servicios..."
|
||||
|
||||
if [[ "$UPDATE_BACKEND" == "true" ]]; then
|
||||
systemctl restart adan-api 2>/dev/null && log_success "adan-api reiniciado" || log_warn "adan-api no existe"
|
||||
systemctl restart atlas-api 2>/dev/null && log_success "atlas-api reiniciado" || log_warn "atlas-api no existe"
|
||||
fi
|
||||
|
||||
if [[ "$UPDATE_FRONTEND" == "true" ]]; then
|
||||
systemctl restart adan-web 2>/dev/null && log_success "adan-web reiniciado" || log_warn "adan-web no existe"
|
||||
systemctl restart atlas-web 2>/dev/null && log_success "atlas-web reiniciado" || log_warn "atlas-web no existe"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -328,19 +328,19 @@ verify_services() {
|
||||
sleep 3
|
||||
|
||||
if [[ "$UPDATE_BACKEND" == "true" ]]; then
|
||||
if systemctl is-active --quiet adan-api; then
|
||||
log_success "adan-api: activo"
|
||||
if systemctl is-active --quiet atlas-api; then
|
||||
log_success "atlas-api: activo"
|
||||
else
|
||||
log_error "adan-api: inactivo"
|
||||
log_error "atlas-api: inactivo"
|
||||
all_ok=false
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$UPDATE_FRONTEND" == "true" ]]; then
|
||||
if systemctl is-active --quiet adan-web; then
|
||||
log_success "adan-web: activo"
|
||||
if systemctl is-active --quiet atlas-web; then
|
||||
log_success "atlas-web: activo"
|
||||
else
|
||||
log_error "adan-web: inactivo"
|
||||
log_error "atlas-web: inactivo"
|
||||
all_ok=false
|
||||
fi
|
||||
fi
|
||||
@@ -357,8 +357,8 @@ verify_services() {
|
||||
|
||||
if [[ "$all_ok" == "false" ]]; then
|
||||
log_error "Algunos servicios fallaron. Revisa los logs:"
|
||||
echo " journalctl -u adan-api -n 50"
|
||||
echo " journalctl -u adan-web -n 50"
|
||||
echo " journalctl -u atlas-api -n 50"
|
||||
echo " journalctl -u atlas-web -n 50"
|
||||
return 1
|
||||
fi
|
||||
|
||||
@@ -412,8 +412,8 @@ show_summary() {
|
||||
echo "Branch: $REPO_BRANCH"
|
||||
echo ""
|
||||
echo "Servicios:"
|
||||
systemctl is-active adan-api 2>/dev/null && echo " - adan-api: activo" || echo " - adan-api: inactivo"
|
||||
systemctl is-active adan-web 2>/dev/null && echo " - adan-web: activo" || echo " - adan-web: inactivo"
|
||||
systemctl is-active atlas-api 2>/dev/null && echo " - atlas-api: activo" || echo " - atlas-api: inactivo"
|
||||
systemctl is-active atlas-web 2>/dev/null && echo " - atlas-web: activo" || echo " - atlas-web: inactivo"
|
||||
echo ""
|
||||
}
|
||||
|
||||
@@ -425,7 +425,7 @@ main() {
|
||||
|
||||
echo ""
|
||||
echo -e "${BLUE}========================================${NC}"
|
||||
echo -e "${BLUE} ACTUALIZANDO SISTEMA DE ADAN${NC}"
|
||||
echo -e "${BLUE} ACTUALIZANDO SISTEMA DE ATLAS${NC}"
|
||||
echo -e "${BLUE}========================================${NC}"
|
||||
echo ""
|
||||
echo "Branch: $REPO_BRANCH"
|
||||
|
||||
Reference in New Issue
Block a user