Fix: migrate-env-reverb prüft auch REVERB_PORT beim Skip-Check

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main v1.1.298
boban 2026-04-26 18:15:56 +02:00
parent 26eb3abdcd
commit 2369a29161
1 changed files with 10 additions and 4 deletions

View File

@ -38,14 +38,20 @@ class MigrateEnvReverb extends Command
return self::SUCCESS;
}
$viteHost = $this->extractVar($content, 'VITE_REVERB_HOST');
if ($viteHost === '${REVERB_HOST}' || $viteHost === $appHost) {
$scheme = $this->detectScheme($appHost, $content);
$correctPort = $scheme === 'https' ? '443' : '80';
$viteHost = $this->extractVar($content, 'VITE_REVERB_HOST');
$currentPort = $this->extractVar($content, 'REVERB_PORT');
$hostOk = ($viteHost === '${REVERB_HOST}' || $viteHost === $appHost);
$portOk = ($currentPort === $correctPort);
if ($hostOk && $portOk) {
$this->info('REVERB-Werte bereits korrekt.');
return self::SUCCESS;
}
$scheme = $this->detectScheme($appHost, $content);
$port = $scheme === 'https' ? '443' : '80';
$port = $correctPort;
$fixes = [
'REVERB_HOST' => '${APP_HOST}',