fix: deploy instead of restart in case swarm is used
This commit is contained in:
@@ -42,6 +42,19 @@
|
|||||||
</button>
|
</button>
|
||||||
@endif
|
@endif
|
||||||
@if ($application->build_pack !== 'dockercompose')
|
@if ($application->build_pack !== 'dockercompose')
|
||||||
|
@if ($application->destination->server->isSwarm())
|
||||||
|
<button title="Restart without rebuilding" wire:click='deploy'
|
||||||
|
class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400">
|
||||||
|
<svg class="w-5 h-5 text-warning" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
||||||
|
stroke-width="2">
|
||||||
|
<path d="M19.933 13.041a8 8 0 1 1-9.925-8.788c3.899-1 7.935 1.007 9.425 4.747" />
|
||||||
|
<path d="M20 4v5h-5" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
Update Service
|
||||||
|
</button>
|
||||||
|
@else
|
||||||
<button title="Restart without rebuilding" wire:click='restart'
|
<button title="Restart without rebuilding" wire:click='restart'
|
||||||
class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400">
|
class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400">
|
||||||
<svg class="w-5 h-5 text-warning" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg class="w-5 h-5 text-warning" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
@@ -51,12 +64,10 @@
|
|||||||
<path d="M20 4v5h-5" />
|
<path d="M20 4v5h-5" />
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
@if ($application->destination->server->isSwarm())
|
|
||||||
Update Service
|
|
||||||
@else
|
|
||||||
Restart
|
Restart
|
||||||
@endif
|
|
||||||
</button>
|
</button>
|
||||||
|
@endif
|
||||||
{{-- @if (isDev())
|
{{-- @if (isDev())
|
||||||
<button title="Restart without rebuilding" wire:click='restartNew'
|
<button title="Restart without rebuilding" wire:click='restartNew'
|
||||||
class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400">
|
class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400">
|
||||||
|
|||||||
Reference in New Issue
Block a user