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: no sentinel for swarm yet

Andras Bacsaid7efe8a6d11a
diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.php
index 119513002a..ffc5ceecfc 100644
--- a/app/Actions/Server/StartSentinel.php
+++ b/app/Actions/Server/StartSentinel.php
@@ -11,6 +11,9 @@ class StartSentinel
public function handle(Server $server, $version = 'next', bool $restart = false)
{
+ if ($server->isSwarm()) {
+ return;
+ }
if ($restart) {
StopSentinel::run($server);
}
diff --git a/app/Jobs/PushServerUpdateJob.php b/app/Jobs/PushServerUpdateJob.php
index cdc3788e51..bfdd184b5d 100644
--- a/app/Jobs/PushServerUpdateJob.php
+++ b/app/Jobs/PushServerUpdateJob.php
@@ -88,6 +88,7 @@ class PushServerUpdateJob implements ShouldQueue
public function handle()
{
+ // TODO: Swarm is not supported yet
try {
if (! $this->data) {
throw new \Exception('No data provided');
diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php
index 7365fc1b13..cf071c5e36 100644
--- a/resources/views/livewire/server/form.blade.php
+++ b/resources/views/livewire/server/form.blade.php
@@ -158,17 +158,18 @@
@endif
</div>
</div>
- @if (isDev())
+ @if (!$server->isSwarm())
<div class="flex gap-2 items-center pt-4 pb-2">
<h3>Sentinel</h3>
@if ($server->isSentinelEnabled())
<div class="flex gap-2 items-center"
wire:poll.{{ $server->settings->sentinel_push_interval_seconds }}s="checkSyncStatus">
@if ($server->isSentinelLive())
- <x-status.running status="In sync" noLoading title="{{$server->sentinel_updated_at}}" />
+ <x-status.running status="In sync" noLoading title="{{ $server->sentinel_updated_at }}" />
<x-forms.button wire:click='restartSentinel'>Restart</x-forms.button>
@else
- <x-status.stopped status="Out of sync" noLoading title="{{$server->sentinel_updated_at}}" />
+ <x-status.stopped status="Out of sync" noLoading
+ title="{{ $server->sentinel_updated_at }}" />
<x-forms.button wire:click='restartSentinel'>Sync</x-forms.button>
@endif
</div>