the-tip-top-backend/scripts/start-fresh.ps1
2025-11-17 23:47:54 +01:00

16 lines
483 B
PowerShell

# Script PowerShell pour démarrer le serveur proprement
Write-Host "Nettoyage des processus Node.js existants..." -ForegroundColor Yellow
try {
Get-Process node -ErrorAction Stop | Stop-Process -Force
Write-Host "✓ Processus arrêtés" -ForegroundColor Green
} catch {
Write-Host "✓ Aucun processus à arrêter" -ForegroundColor Cyan
}
Start-Sleep -Seconds 2
Write-Host "`nDémarrage du serveur..." -ForegroundColor Yellow
Set-Location $PSScriptRoot\..
npm start