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(seeder): conditionally dispatch CheckAndStartSentinelJob based on server's sentinel status

Andras Bacsai423cf8f67d88
diff --git a/database/seeders/ProductionSeeder.php b/database/seeders/ProductionSeeder.php
index e7271039a8..839e2e15db 100644
--- a/database/seeders/ProductionSeeder.php
+++ b/database/seeders/ProductionSeeder.php
@@ -125,7 +125,9 @@ class ProductionSeeder extends Seeder
$server->settings->is_usable = true;
$server->settings->save();
StartProxy::dispatch($server);
- CheckAndStartSentinelJob::dispatch($server);
+ if ($server->isSentinelEnabled()) {
+ CheckAndStartSentinelJob::dispatch($server);
+ }
}
if (StandaloneDocker::find(0) == null) {