CoolFace
Apppublic

Akshanshsensei/PDF-Constrained-Conversational-Agent

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
start_redis.ps125 linesDownload Raw Back to root
1# start_redis.ps1 — Run this once before starting the app2# Usage: Right-click → "Run with PowerShell"3#        OR from terminal: .\start_redis.ps14 5$redisExe = "C:\Redis\redis-server.exe"6$redisCli = "C:\Redis\redis-cli.exe"7 8# Check if already running9$running = & $redisCli ping 2>$null10if ($running -eq "PONG") {11    Write-Host "✅ Redis is already running on localhost:6379" -ForegroundColor Green12    exit 013}14 15Write-Host "🚀 Starting Redis server..." -ForegroundColor Cyan16Start-Process -FilePath $redisExe -WindowStyle Minimized17Start-Sleep -Seconds 218 19$check = & $redisCli ping 2>$null20if ($check -eq "PONG") {21    Write-Host "✅ Redis started successfully on localhost:6379" -ForegroundColor Green22} else {23    Write-Host "❌ Redis failed to start. Check C:\Redis\redis-server.exe exists." -ForegroundColor Red24}25