GitPulse-Intelligence / scripts /start_production.ps1
DIVYANSHI SINGH
🧹 Cleanup: Reorganize repository - Move tests and scripts to dedicated folders
4739bd2
raw
history blame contribute delete
730 Bytes
# GitHub Talent Finder - Production Start Script (Windows)
# Run this script to launch the application with multi-worker concurrency.
Write-Host "πŸš€ Launching GitHub Talent Finder in Production Mode..." -ForegroundColor Cyan
# Define number of workers (recommend: 2 * Cores + 1)
$CPU_CORES = (Get-WmiObject Win32_Processor).NumberOfCores
$WORKERS = ($CPU_CORES * 2) + 1
Write-Host "πŸ”§ Configured for $WORKERS worker processes." -ForegroundColor Gray
# Run Uvicorn with multiple workers
# Note: --reload is disabled in production for performance and stability.
python -m uvicorn main:app --host 0.0.0.0 --port 8000 --workers $WORKERS --log-level info
Write-Host "βœ… Application shutdown complete." -ForegroundColor Yellow