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.

fix: server validation

Andras Bacsai825e9b7e9d30
diff --git a/app/Models/Server.php b/app/Models/Server.php
index e9b6fd929e..55a4742c0b 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -974,10 +974,10 @@ $schema://$host {
public function serverStatus(): bool
{
- if ($this->isFunctional() === false) {
+ if ($this->status() === false) {
return false;
}
- if ($this->status() === false) {
+ if ($this->isFunctional() === false) {
return false;
}
@@ -986,9 +986,6 @@ $schema://$host {
public function status(): bool
{
- if ($this->isFunctional() === false) {
- return false;
- }
['uptime' => $uptime] = $this->validateConnection(false);
if ($uptime === false) {
foreach ($this->applications() as $application) {