Cesar Mendivil 543d6bc6af feat: update studio-panel and broadcast-panel configurations
- Changed development port for studio-panel from 3001 to 3020 in package.json and vite.config.ts.
- Refactored Studio component in studio-panel to improve token handling and error diagnostics.
- Added utility functions for token validation and JWT decoding in Studio component.
- Enhanced error handling and user feedback in Studio component when token is invalid.
- Implemented sessionStorage management for token and server URL in Studio component.
- Created Docker setup for broadcast-panel including Dockerfile, Dockerfile.dev, and docker-compose.yml.
- Added Nginx configuration for serving the broadcast-panel as a Single Page Application.
- Introduced Banner component in broadcast-panel for displaying messages and actions.
- Added start-docker.sh script for easy Docker management of broadcast-panel.
- Implemented Playwright E2E tests for token handling and UI interactions between broadcast-panel and studio-panel.
- Included SSL certificates for local development in studio-panel.
2025-11-06 23:15:23 -07:00

36 lines
979 B
Bash
Executable File

#!/bin/bash
# Script para iniciar Broadcast Panel con Docker
set -e
echo "🚀 Iniciando AvanzaCast Broadcast Panel..."
# Verificar si existe .env
if [ ! -f .env ]; then
echo "📝 Creando archivo .env desde .env.example..."
cp .env.example .env
fi
# Modo de ejecución (dev o prod)
MODE=${1:-dev}
if [ "$MODE" = "dev" ]; then
echo "🔧 Modo: DESARROLLO"
echo "📦 Construyendo imagen de desarrollo..."
docker-compose build broadcast-panel-dev
echo "🎬 Iniciando contenedor en modo desarrollo..."
docker-compose up broadcast-panel-dev
elif [ "$MODE" = "prod" ]; then
echo "🏭 Modo: PRODUCCIÓN"
echo "📦 Construyendo imagen de producción..."
docker-compose --profile production build broadcast-panel-prod
echo "🎬 Iniciando contenedor en modo producción..."
docker-compose --profile production up broadcast-panel-prod
else
echo "❌ Modo no válido. Usa: ./start-docker.sh [dev|prod]"
exit 1
fi