kenso war das
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# EmailSorter Production Setup Script
|
||||
# MailFlow Production Setup Script
|
||||
# Dieses Script hilft beim Setup für Production
|
||||
|
||||
Write-Host "========================================" -ForegroundColor Cyan
|
||||
Write-Host "EmailSorter Production Setup" -ForegroundColor Cyan
|
||||
Write-Host "MailFlow Production Setup" -ForegroundColor Cyan
|
||||
Write-Host "========================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
|
||||
@@ -59,18 +59,18 @@ if (Test-Path $serverPath) {
|
||||
|
||||
# Prüfe ob Server bereits läuft
|
||||
$pm2List = pm2 list 2>&1
|
||||
if ($pm2List -match "emailsorter-api") {
|
||||
if ($pm2List -match "mailflow-api") {
|
||||
Write-Host " Server läuft bereits. Neustart..." -ForegroundColor Yellow
|
||||
pm2 restart emailsorter-api
|
||||
pm2 restart mailflow-api
|
||||
} else {
|
||||
Write-Host " Starte Backend Server mit PM2..." -ForegroundColor Yellow
|
||||
pm2 start index.mjs --name emailsorter-api
|
||||
pm2 start index.mjs --name mailflow-api
|
||||
pm2 save
|
||||
}
|
||||
|
||||
Write-Host "✓ Backend Server gestartet" -ForegroundColor Green
|
||||
Write-Host " Status: pm2 status" -ForegroundColor Cyan
|
||||
Write-Host " Logs: pm2 logs emailsorter-api" -ForegroundColor Cyan
|
||||
Write-Host " Logs: pm2 logs mailflow-api" -ForegroundColor Cyan
|
||||
} else {
|
||||
Write-Host "✗ Server Verzeichnis nicht gefunden!" -ForegroundColor Red
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user