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
refactor(cloudflare): update server retrieval method for improved query efficiency
Andras Bacsaid3c517353cac
diff --git a/app/Listeners/CloudflareTunnelChangedNotification.php b/app/Listeners/CloudflareTunnelChangedNotification.phpindex 8b88b11f5f..34e713f954 100644--- a/app/Listeners/CloudflareTunnelChangedNotification.php+++ b/app/Listeners/CloudflareTunnelChangedNotification.php@@ -18,7 +18,7 @@ class CloudflareTunnelChangedNotification$server_id = data_get($event, 'data.server_id');$ssh_domain = data_get($event, 'data.ssh_domain');- $this->server = Server::find($server_id)->firstOrFail();+ $this->server = Server::where('id', $server_id)->firstOrFail();// Check if cloudflare tunnel is running (container is healthy) - try 3 times with 5 second intervals$cloudflareHealthy = false;