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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix
Andras Bacsaicf0cf13a682b
diff --git a/app/Jobs/InstanceAutoUpdateJob.php b/app/Jobs/InstanceAutoUpdateJob.phpindex 757e90f6d1..5728251749 100644--- a/app/Jobs/InstanceAutoUpdateJob.php+++ b/app/Jobs/InstanceAutoUpdateJob.php@@ -19,7 +19,7 @@ class InstanceAutoUpdateJob implements ShouldQueueprivate string $latest_version;private string $current_version;private Server $server;- private string $server_name = 'host.docker.internal';+ private string $server_name = 'localhost';public function __construct(private bool $force = false){@@ -28,7 +28,7 @@ class InstanceAutoUpdateJob implements ShouldQueue}$instance_settings = InstanceSettings::get();- $this->server = Server::where('ip', $this->server_name)->first();+ $this->server = Server::whereFirst('name', $this->server_name);if (!$instance_settings->is_auto_update_enabled || !$this->server) {return $this->delete();diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.phpindex 9fb60e70d8..7e85e413bb 100644--- a/resources/views/livewire/server/form.blade.php+++ b/resources/views/livewire/server/form.blade.php@@ -12,7 +12,11 @@</div><div class="flex flex-col gap-2 xl:flex-row"><div class="flex flex-col w-96">- <x-forms.input id="server.name" label="Name" required />+ @if ($server->id === 0)+ <x-forms.input id="server.name" label="Name" readonly />+ @else+ <x-forms.input id="server.name" label="Name" required />+ @endif<x-forms.input id="server.description" label="Description" />{{-- <x-forms.checkbox disabled type="checkbox" id="server.settings.is_part_of_swarm"label="Is it part of a Swarm cluster?" /> --}}