# Check deployment status - simplified param( [string]$Server = "45.249.208.118", [string]$User = "root", [string]$Password = "lxvhNYFZ4160", [string]$ProjectPath = "/root/youyidian-3d" ) $plinkPath = "C:\Program Files\PuTTY\plink.exe" Write-Host "Checking deployment status..." -ForegroundColor Yellow Write-Host "" # Check containers Write-Host "1. Container status:" -ForegroundColor Cyan $cmd = "cd $ProjectPath; docker compose ps 2>&1" & $plinkPath -ssh -pw $Password -batch "${User}@${Server}" $cmd Write-Host "" # Check if app container is running Write-Host "2. App container status:" -ForegroundColor Cyan $cmd = "docker ps --filter 'name=app' --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' 2>&1" & $plinkPath -ssh -pw $Password -batch "${User}@${Server}" $cmd Write-Host "" # Check logs Write-Host "3. Recent logs (last 20 lines):" -ForegroundColor Cyan $cmd = "cd $ProjectPath; docker compose logs app --tail=20 2>&1" & $plinkPath -ssh -pw $Password -batch "${User}@${Server}" $cmd Write-Host "" # Check if build is in progress Write-Host "4. Docker processes:" -ForegroundColor Cyan $cmd = "ps aux | grep '[d]ocker' | head -3" & $plinkPath -ssh -pw $Password -batch "${User}@${Server}" $cmd Write-Host "" Write-Host "Status check complete." -ForegroundColor Green