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.

Do not report server is not ready

Andras Bacsai910a1f43a937
diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.php
index 6272d442de..0afcb4bb3d 100644
--- a/app/Jobs/ServerStatusJob.php
+++ b/app/Jobs/ServerStatusJob.php
@@ -37,10 +37,10 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted
public function handle()
{
+ if (!$this->server->isServerReady($this->tries)) {
+ throw new \RuntimeException('Server is not ready.');
+ };
try {
- if (!$this->server->isServerReady($this->tries)) {
- throw new \RuntimeException('Server is not ready.');
- };
if ($this->server->isFunctional()) {
$this->cleanup(notify: false);
}