forked from Ace-Radom/easytimer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.ps1
More file actions
32 lines (27 loc) · 990 Bytes
/
deploy.ps1
File metadata and controls
32 lines (27 loc) · 990 Bytes
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
# Easy Timer - Vercel Deployment Script for PowerShell
Write-Host "🚀 Deploying Easy Timer to Vercel..." -ForegroundColor Green
# Check if Vercel CLI is installed
try {
$null = Get-Command vercel -ErrorAction Stop
Write-Host "✅ Vercel CLI found" -ForegroundColor Green
}
catch {
Write-Host "❌ Vercel CLI is not installed." -ForegroundColor Red
Write-Host "📦 Install it with: npm i -g vercel" -ForegroundColor Yellow
exit 1
}
# Check if user is logged in
try {
$null = & vercel whoami 2>$null
Write-Host "✅ User authenticated" -ForegroundColor Green
}
catch {
Write-Host "🔐 Please login to Vercel first:" -ForegroundColor Yellow
Write-Host " vercel login" -ForegroundColor White
exit 1
}
# Deploy to Vercel
Write-Host "🔄 Starting deployment..." -ForegroundColor Blue
& vercel --prod
Write-Host "✅ Deployment complete!" -ForegroundColor Green
Write-Host "🌐 Your Easy Timer app is now live on Vercel!" -ForegroundColor Cyan