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.

Refactor StartSentinel to handle build servers

Andras Bacsaib282c8412c0f
diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.php
index ffc5ceecfc..f3ac7f5a3b 100644
--- a/app/Actions/Server/StartSentinel.php
+++ b/app/Actions/Server/StartSentinel.php
@@ -11,7 +11,7 @@ class StartSentinel
public function handle(Server $server, $version = 'next', bool $restart = false)
{
- if ($server->isSwarm()) {
+ if ($server->isSwarm() || $server->isBuildServer()) {
return;
}
if ($restart) {
diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php
index cf071c5e36..e208dcdc3f 100644
--- a/resources/views/livewire/server/form.blade.php
+++ b/resources/views/livewire/server/form.blade.php
@@ -158,7 +158,7 @@
@endif
</div>
</div>
- @if (!$server->isSwarm())
+ @if (!$server->isSwarm() && !$server->isBuildServer())
<div class="flex gap-2 items-center pt-4 pb-2">
<h3>Sentinel</h3>
@if ($server->isSentinelEnabled())