Spaces:
Running
Running
Download check-deployment.ps1 from axeronis/microfunnel-api: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/check-deployment.ps1
- Command line
-
hf download hf://spaces/axeronis/microfunnel-api/check-deployment.ps1
-
curl -L -o check-deployment.ps1 https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/check-deployment.ps1
2 kB
| # Pre-deployment checklist for Windows | |
| Write-Host "π Checking deployment readiness..." -ForegroundColor Cyan | |
| Write-Host "" | |
| # Check if git initialized | |
| if (-not (Test-Path ".git")) { | |
| Write-Host "β Git not initialized. Run: git init" -ForegroundColor Red | |
| exit 1 | |
| } | |
| Write-Host "β Git initialized" -ForegroundColor Green | |
| # Check critical files exist | |
| $files = @( | |
| "backend\railway.json", | |
| "backend\Procfile", | |
| "backend\.env.railway.template", | |
| "frontend\vercel.json", | |
| "frontend\.env.vercel.template", | |
| "DEPLOYMENT.md" | |
| ) | |
| foreach ($file in $files) { | |
| if (-not (Test-Path $file)) { | |
| Write-Host "β Missing: $file" -ForegroundColor Red | |
| exit 1 | |
| } | |
| } | |
| Write-Host "β All deployment configs present" -ForegroundColor Green | |
| # Check .gitignore | |
| if (-not (Test-Path ".gitignore")) { | |
| Write-Host "β Missing .gitignore" -ForegroundColor Red | |
| exit 1 | |
| } | |
| Write-Host "β .gitignore exists" -ForegroundColor Green | |
| # Check backend dependencies | |
| if (-not (Test-Path "backend\requirements.txt")) { | |
| Write-Host "β Missing backend\requirements.txt" -ForegroundColor Red | |
| exit 1 | |
| } | |
| Write-Host "β Backend dependencies defined" -ForegroundColor Green | |
| # Check frontend dependencies | |
| if (-not (Test-Path "frontend\package.json")) { | |
| Write-Host "β Missing frontend\package.json" -ForegroundColor Red | |
| exit 1 | |
| } | |
| Write-Host "β Frontend dependencies defined" -ForegroundColor Green | |
| Write-Host "" | |
| Write-Host "π Ready for deployment!" -ForegroundColor Green | |
| Write-Host "" | |
| Write-Host "Next steps:" -ForegroundColor Yellow | |
| Write-Host "1. Push to GitHub: git push origin main" | |
| Write-Host "2. Deploy backend to Railway (https://railway.app)" | |
| Write-Host "3. Deploy frontend to Vercel (https://vercel.com)" | |
| Write-Host "4. Read DEPLOYMENT.md for detailed instructions" | |
| Write-Host "" | |
| Write-Host "Quick start:" -ForegroundColor Cyan | |
| Write-Host " git add ." | |
| Write-Host ' git commit -m "Ready for production deployment"' | |
| Write-Host " git push origin main" | |