Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

feat(proxy): trigger version check after restart from UI

Andras Bacsaid3e7d979f6d6
diff --git a/app/Livewire/Server/Navbar.php b/app/Livewire/Server/Navbar.php
index 7827f02b83..7b250fa8f3 100644
--- a/app/Livewire/Server/Navbar.php
+++ b/app/Livewire/Server/Navbar.php
@@ -6,6 +6,7 @@ use App\Actions\Proxy\CheckProxy;
use App\Actions\Proxy\StartProxy;
use App\Actions\Proxy\StopProxy;
use App\Enums\ProxyTypes;
+use App\Jobs\CheckTraefikVersionForServerJob;
use App\Models\Server;
use App\Services\ProxyDashboardCacheService;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
@@ -68,6 +69,11 @@ class Navbar extends Component
$activity = StartProxy::run($this->server, force: true, restarting: true);
$this->dispatch('activityMonitor', $activity->id);
+
+ // Check Traefik version after restart to provide immediate feedback
+ if ($this->server->proxyType() === ProxyTypes::TRAEFIK->value) {
+ CheckTraefikVersionForServerJob::dispatch($this->server);
+ }
} catch (\Throwable $e) {
return handleError($e, $this);
}
@@ -137,9 +143,6 @@ class Navbar extends Component
$this->dispatch('success', 'Proxy is running.');
}
break;
- case 'restarting':
- $this->dispatch('info', 'Initiating proxy restart.');
- break;
case 'exited':
// Only show "Proxy has exited" notification when transitioning from running state
// Don't show during normal stop/restart flows (stopping, restarting)