-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify-deployment.ps1
More file actions
82 lines (74 loc) Β· 3.97 KB
/
verify-deployment.ps1
File metadata and controls
82 lines (74 loc) Β· 3.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env pwsh
<#
HAVEN IDE β Deployment Verification Script
Checks Ollama, Node.js, npm, and build status
#>
Write-Host "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ" -ForegroundColor Cyan
Write-Host "β HAVEN IDE β Deployment Verification β" -ForegroundColor Cyan
Write-Host "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ" -ForegroundColor Cyan
Write-Host ""
# 1. Check Node.js
Write-Host "[1/6] Checking Node.js..." -ForegroundColor Yellow
try {
$nodeVersion = node --version
Write-Host "β
Node.js: $nodeVersion" -ForegroundColor Green
} catch {
Write-Host "β Node.js not found" -ForegroundColor Red
exit 1
}
# 2. Check npm
Write-Host "[2/6] Checking npm..." -ForegroundColor Yellow
try {
$npmVersion = npm --version
Write-Host "β
npm: $npmVersion" -ForegroundColor Green
} catch {
Write-Host "β npm not found" -ForegroundColor Red
exit 1
}
# 3. Check Ollama
Write-Host "[3/6] Checking Ollama at http://127.0.0.1:11434..." -ForegroundColor Yellow
try {
$ollamaResponse = Invoke-WebRequest -Uri "http://127.0.0.1:11434/api/tags" -ErrorAction Stop
Write-Host "β
Ollama is running" -ForegroundColor Green
$models = ($ollamaResponse.Content | ConvertFrom-Json).models
Write-Host " Available models:" -ForegroundColor Gray
foreach ($model in $models) {
Write-Host " β’ $($model.name)" -ForegroundColor Gray
}
} catch {
Write-Host "β οΈ Ollama not responding. Start it with: ollama serve" -ForegroundColor Yellow
}
# 4. Check project folder
Write-Host "[4/6] Checking project folder..." -ForegroundColor Yellow
$projectPath = "C:\Users\Iqd20\OneDrive\OFFICIAL"
if (Test-Path $projectPath) {
Write-Host "β
Project folder found: $projectPath" -ForegroundColor Green
} else {
Write-Host "β Project folder not found" -ForegroundColor Red
exit 1
}
# 5. Check dependencies
Write-Host "[5/6] Checking dependencies..." -ForegroundColor Yellow
if (Test-Path "$projectPath\node_modules") {
Write-Host "β
node_modules exists" -ForegroundColor Green
} else {
Write-Host "β οΈ node_modules missing. Run: npm install" -ForegroundColor Yellow
}
# 6. Check build folder
Write-Host "[6/6] Checking build folder..." -ForegroundColor Yellow
if (Test-Path "$projectPath\dist") {
Write-Host "β
dist/ folder exists (production build ready)" -ForegroundColor Green
} else {
Write-Host "βΉοΈ dist/ folder not found. Run: npm run build" -ForegroundColor Cyan
}
Write-Host ""
Write-Host "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ" -ForegroundColor Cyan
Write-Host "β QUICK COMMANDS β" -ForegroundColor Cyan
Write-Host "β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£" -ForegroundColor Cyan
Write-Host "β Development: npm run dev β" -ForegroundColor Cyan
Write-Host "β Build: npm run build β" -ForegroundColor Cyan
Write-Host "β Deploy: npm run deploy:vercel β" -ForegroundColor Cyan
Write-Host "β Start Ollama: ollama serve β" -ForegroundColor Cyan
Write-Host "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ" -ForegroundColor Cyan
Write-Host ""
Write-Host "β
HAVEN IDE is ready for deployment!" -ForegroundColor Green