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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(proxy): defer UI refresh until Traefik version check completes
Andras Bacsai367d7eeabc61
diff --git a/app/Listeners/ProxyStatusChangedNotification.php b/app/Listeners/ProxyStatusChangedNotification.phpindex 1d99e70571..30ecb2d8d5 100644--- a/app/Listeners/ProxyStatusChangedNotification.php+++ b/app/Listeners/ProxyStatusChangedNotification.php@@ -29,7 +29,8 @@ class ProxyStatusChangedNotification implements ShouldQueueAfterCommit$server->proxy->set('status', $status);$server->save();- ProxyStatusChangedUI::dispatch($server->team_id);+ $versionCheckDispatched = false;+if ($status === 'running') {$server->setupDefaultRedirect();$server->setupDynamicProxyConfiguration();@@ -40,7 +41,9 @@ class ProxyStatusChangedNotification implements ShouldQueueAfterCommitif ($server->proxyType() === ProxyTypes::TRAEFIK->value) {$traefikVersions = get_traefik_versions();if ($traefikVersions !== null) {+ // Version check job will dispatch ProxyStatusChangedUI when completeCheckTraefikVersionForServerJob::dispatch($server, $traefikVersions);+ $versionCheckDispatched = true;} else {Log::warning('Traefik version check skipped after proxy status change: versions.json data unavailable', ['server_id' => $server->id,@@ -49,6 +52,13 @@ class ProxyStatusChangedNotification implements ShouldQueueAfterCommit}}}++ // Only dispatch UI refresh if version check wasn't dispatched+ // (version check job handles its own UI refresh with updated version data)+ if (! $versionCheckDispatched) {+ ProxyStatusChangedUI::dispatch($server->team_id);+ }+if ($status === 'created') {instant_remote_process(['docker rm -f coolify-proxy',