Initial commit: Video player with HLS support
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
41
start.sh
Executable file
41
start.sh
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script para iniciar Quantum Player con Cloudflare Tunnel
|
||||
# Uso: ./start.sh
|
||||
|
||||
# Colores para el output
|
||||
GREEN='\033[0;32m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m' # Sin color
|
||||
|
||||
echo -e "${BLUE}🚀 Iniciando Quantum Player...${NC}"
|
||||
|
||||
# Verificar si ya está corriendo
|
||||
if pgrep -f "node .output/server/index.mjs" > /dev/null; then
|
||||
echo -e "${GREEN}✓ El servidor ya está corriendo${NC}"
|
||||
else
|
||||
echo -e "${BLUE}→ Iniciando servidor Nuxt...${NC}"
|
||||
PORT=3000 node .output/server/index.mjs > /dev/null 2>&1 &
|
||||
sleep 2
|
||||
echo -e "${GREEN}✓ Servidor iniciado en puerto 3000${NC}"
|
||||
fi
|
||||
|
||||
# Verificar si cloudflared ya está corriendo
|
||||
if pgrep -f "cloudflared tunnel run" > /dev/null; then
|
||||
echo -e "${GREEN}✓ Cloudflare Tunnel ya está corriendo${NC}"
|
||||
else
|
||||
echo -e "${BLUE}→ Iniciando Cloudflare Tunnel...${NC}"
|
||||
./cloudflared tunnel run video-player > /dev/null 2>&1 &
|
||||
sleep 3
|
||||
echo -e "${GREEN}✓ Tunnel iniciado${NC}"
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}"
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo "✓ Quantum Player está en línea!"
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo -e "${NC}"
|
||||
echo -e "🌐 URL Pública: ${BLUE}https://video.nucleoriofrio.com${NC}"
|
||||
echo -e "🏠 URL Local: ${BLUE}http://localhost:3000${NC}"
|
||||
echo ""
|
||||
echo -e "Para detener los servicios ejecuta: ${BLUE}./stop.sh${NC}"
|
||||
Reference in New Issue
Block a user