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.

feat: revalidate server

Andras Bacsaia9ea6330d9c9
diff --git a/app/Livewire/Server/Form.php b/app/Livewire/Server/Form.php
index bb9c7c3a10..2ced33461e 100644
--- a/app/Livewire/Server/Form.php
+++ b/app/Livewire/Server/Form.php
@@ -68,6 +68,9 @@ class Form extends Component
return handleError($e, $this);
}
}
+ public function revalidate() {
+ $this->validateServer();
+ }
public function checkLocalhostConnection()
{
$uptime = $this->server->validateConnection();
diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php
index 209f951ef8..b7af84d309 100644
--- a/resources/views/livewire/server/form.blade.php
+++ b/resources/views/livewire/server/form.blade.php
@@ -10,12 +10,17 @@
</x-new-modal>
@else
<x-forms.button type="submit">Save</x-forms.button>
+ <x-new-modal buttonTitle="Revalidate" title="Revalidate" action="revalidate">
+ This will revalidate the server, install / update Docker Engine, Docker Compose and all related
+ configuration. It will also restart Docker Engine, so your running containers will be unreachable
+ for the time being.
+ </x-new-modal>
@endif
</div>
- @if (!$server->isFunctional())
- You can't use this server until it is validated.
- @else
+ @if ($server->isFunctional())
Server is reachable and validated.
+ @else
+ You can't use this server until it is validated.
@endif
@if ((!$server->settings->is_reachable || !$server->settings->is_usable) && $server->id !== 0)
<x-slide-over closeWithX fullScreen>