================================================================================ LIVEKIT VOICEBOT - MANUAL DEPLOYMENT COMMANDS Domain: 10.40.180.74 ================================================================================ CURRENT STATUS: ✅ Git repository cloned (devmilan branch) ✅ Frontend production build created ✅ Backend running with Cartesia support (livekit-agents 1.4.6) ✅ All dependencies installed ✅ Services running in background ================================================================================ STEP 1: CONFIGURE APACHE FOR DOMAIN 10.40.180.74 ================================================================================ Run these commands (you'll need to enter your password): sudo cp /tmp/livekit-voicebot.conf /etc/apache2/sites-available/ sudo a2ensite livekit-voicebot.conf sudo apache2ctl configtest sudo systemctl reload apache2 ================================================================================ STEP 2: VERIFY DEPLOYMENT ================================================================================ # Check if frontend is accessible curl http://localhost:3000 # Check if domain is accessible curl http://10.40.180.74 # Check Apache status sudo systemctl status apache2 ================================================================================ STEP 3: OPTIONAL - INSTALL SYSTEMD SERVICES (Auto-restart on reboot) ================================================================================ bash /var/www/html/livekit_frontend/install-services.sh ================================================================================ CURRENT RUNNING PROCESSES ================================================================================ Frontend (Next.js): PID: 1029871 Command: next-server (v15.5.2) Port: 3000 Backend (Python Agent): Command: uv run python src/agent.py dev Status: Running with Cartesia + ElevenLabs support ================================================================================ APACHE CONFIGURATION FILE LOCATION ================================================================================ Source: /tmp/livekit-voicebot.conf Target: /etc/apache2/sites-available/livekit-voicebot.conf ================================================================================ ACCESS URLS AFTER APACHE CONFIGURATION ================================================================================ Public URL: http://10.40.180.74 Direct Frontend: http://localhost:3000 (internal only) ================================================================================ LOGS LOCATION ================================================================================ Apache Logs: - /var/log/apache2/livekit-voicebot-error.log - /var/log/apache2/livekit-voicebot-access.log Application Logs: - /var/www/html/livekit_frontend/logs/frontend-out.log - /var/www/html/livekit_frontend/logs/backend-out.log - /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/ ================================================================================ RESTART SERVICES IF NEEDED ================================================================================ Frontend: cd /var/www/html/livekit_frontend/FrontEnd/agent-starter-react/agent-starter-react npm run start Backend: cd /var/www/html/livekit_frontend/BackEnd/agent-starter-python /home/aiteam/.local/bin/uv run python src/agent.py dev ================================================================================ ARCHITECTURE ================================================================================ Internet → Apache (Port 80) → Next.js Frontend (Port 3000) ← User Browser ↓ LiveKit Cloud ← Python Backend Agent ↓ STT/TTS (ElevenLabs/Cartesia) ================================================================================