chore: Update GitHub Actions workflows for improved performance and reliability
This commit is contained in:
63
scripts/check-status.ps1
Normal file
63
scripts/check-status.ps1
Normal file
@@ -0,0 +1,63 @@
|
||||
# Quick Status Check Script
|
||||
|
||||
Write-Host "`n=== Service Status ===" -ForegroundColor Cyan
|
||||
|
||||
# Check Webapp
|
||||
$webappRunning = $false
|
||||
try {
|
||||
$result = Test-NetConnection -ComputerName localhost -Port 3000 -WarningAction SilentlyContinue
|
||||
if ($result.TcpTestSucceeded) {
|
||||
$webappRunning = $true
|
||||
Write-Host "✅ Webapp (3000): Running" -ForegroundColor Green
|
||||
}
|
||||
} catch {
|
||||
Write-Host "❌ Webapp (3000): Not running" -ForegroundColor Red
|
||||
}
|
||||
|
||||
# Check Orchestrator
|
||||
$orchRunning = $false
|
||||
try {
|
||||
$result = Test-NetConnection -ComputerName localhost -Port 8080 -WarningAction SilentlyContinue
|
||||
if ($result.TcpTestSucceeded) {
|
||||
$orchRunning = $true
|
||||
Write-Host "✅ Orchestrator (8080): Running" -ForegroundColor Green
|
||||
}
|
||||
} catch {
|
||||
Write-Host "❌ Orchestrator (8080): Not running" -ForegroundColor Red
|
||||
}
|
||||
|
||||
# Check PostgreSQL
|
||||
$pgRunning = $false
|
||||
try {
|
||||
$result = Test-NetConnection -ComputerName localhost -Port 5432 -WarningAction SilentlyContinue
|
||||
if ($result.TcpTestSucceeded) {
|
||||
$pgRunning = $true
|
||||
Write-Host "✅ PostgreSQL (5432): Running" -ForegroundColor Green
|
||||
}
|
||||
} catch {
|
||||
Write-Host "⚠️ PostgreSQL (5432): Not running (optional)" -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
# Check Redis
|
||||
$redisRunning = $false
|
||||
try {
|
||||
$result = Test-NetConnection -ComputerName localhost -Port 6379 -WarningAction SilentlyContinue
|
||||
if ($result.TcpTestSucceeded) {
|
||||
$redisRunning = $true
|
||||
Write-Host "✅ Redis (6379): Running" -ForegroundColor Green
|
||||
}
|
||||
} catch {
|
||||
Write-Host "⚠️ Redis (6379): Not running (optional)" -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
Write-Host "`n=== Quick Access ===" -ForegroundColor Cyan
|
||||
if ($webappRunning) {
|
||||
Write-Host "Frontend: http://localhost:3000" -ForegroundColor White
|
||||
}
|
||||
if ($orchRunning) {
|
||||
Write-Host "Backend: http://localhost:8080" -ForegroundColor White
|
||||
Write-Host "Health: http://localhost:8080/health" -ForegroundColor White
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
|
||||
Reference in New Issue
Block a user