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 horizon command name

Andras Bacsaif0985a7e47bb
diff --git a/app/Actions/Application/AnyDeploymentsRunning.php b/app/Actions/Application/IsHorizonQueueEmpty.php
similarity index 83%
rename from app/Actions/Application/AnyDeploymentsRunning.php
rename to app/Actions/Application/IsHorizonQueueEmpty.php
index 3082269551..17966b8a0d 100644
--- a/app/Actions/Application/AnyDeploymentsRunning.php
+++ b/app/Actions/Application/IsHorizonQueueEmpty.php
@@ -5,7 +5,7 @@ namespace App\Actions\Application;
use Laravel\Horizon\Contracts\JobRepository;
use Lorisleiva\Actions\Concerns\AsAction;
-class AnyDeploymentsRunning
+class IsHorizonQueueEmpty
{
use AsAction;
@@ -25,15 +25,13 @@ class AnyDeploymentsRunning
in_array('server:'.$hostname, $tags);
});
if ($running->count() > 0) {
- dump($running);
- echo 'true';
+ echo 'false';
- return true;
+ return false;
}
}
+ echo 'true';
- echo 'false';
-
- return false;
+ return true;
}
}