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 server status check and cleanup logic
Andras Bacsaic41cfe2a2fe2
diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.phpindex 20b564fe8f..c162d3bc33 100644--- a/app/Jobs/ServerStatusJob.php+++ b/app/Jobs/ServerStatusJob.php@@ -33,11 +33,13 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncryptedpublic function handle(): void{ray("checking server status for {$this->server->id}");+ if (!$this->server->isServerReady(4)) {+ throw new \RuntimeException('Server is not reachable.');+ };try {- if (!$this->server->isServerReady(4)) {- throw new \RuntimeException('Server is not reachable.');- };- $this->cleanup(notify: false);+ if ($this->server->isFunctional()) {+ $this->cleanup(notify: false);+ }} catch (\Throwable $e) {send_internal_notification('ServerStatusJob failed with: ' . $e->getMessage());ray($e->getMessage());