forked from gyanshankar1708/GrowCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-growcraft.ps1
More file actions
29 lines (25 loc) · 1.03 KB
/
start-growcraft.ps1
File metadata and controls
29 lines (25 loc) · 1.03 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
# GrowCraft Local Server
# Simple and reliable local server using Python
Write-Host "========================================" -ForegroundColor Cyan
Write-Host " GrowCraft Local Server" -ForegroundColor Yellow
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "Starting local server..." -ForegroundColor Green
Write-Host ""
Write-Host "Your website will be available at:" -ForegroundColor White
Write-Host " http://localhost:8000" -ForegroundColor Yellow
Write-Host ""
Write-Host "Press Ctrl+C to stop the server" -ForegroundColor Red
Write-Host ""
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
try {
# Start Python HTTP server
py -m http.server 8000
} catch {
Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
Write-Host "Make sure Python is installed and accessible via 'py' command" -ForegroundColor Yellow
}
Write-Host ""
Write-Host "Server stopped." -ForegroundColor Green
Read-Host "Press Enter to continue"