16 lines
483 B
PowerShell
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
|