Spaces:
Running

microfunnel-api / check-deployment.ps1
MicroFunnel
Production-ready: Refactored codebase with Railway + Vercel config
cd61bf7
Raw History Blame Contribute Delete
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"