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: Fix directory and file mount headings in file-storage.blade.php
Andras Bacsaib8a37d897e69
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.phpindex 3aceb449bc..5bfb56067a 100644--- a/app/Livewire/Project/Application/General.php+++ b/app/Livewire/Project/Application/General.php@@ -196,7 +196,7 @@ class General extends Component// Must reload the application to get the latest database changes// Why? Not sure, but it works.- $this->application->refresh();+ // $this->application->refresh();['parsedServices' => $this->parsedServices, 'initialDockerComposeLocation' => $this->initialDockerComposeLocation] = $this->application->loadComposeFile($isInit);if (is_null($this->parsedServices)) {diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex ef7f238e6c..aff9e0ab74 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -3526,6 +3526,9 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int'networks' => $networks_temp,'labels' => $serviceLabels,]);+ if ($ports->count() > 0) {+ $payload['ports'] = $ports;+ }if ($volumesParsed->count() > 0) {$payload['volumes'] = $volumesParsed;}@@ -3544,6 +3547,7 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int$parsedServices->put($serviceName, $payload);}+ ray($parsedServices);$topLevel->put('services', $parsedServices);$customOrder = ['services', 'volumes', 'networks', 'configs', 'secrets'];diff --git a/resources/views/livewire/project/service/file-storage.blade.php b/resources/views/livewire/project/service/file-storage.blade.phpindex 3fa0574d61..539e378854 100644--- a/resources/views/livewire/project/service/file-storage.blade.php+++ b/resources/views/livewire/project/service/file-storage.blade.php@@ -4,9 +4,9 @@<h4>{{ data_get($resource, 'name', 'unknown') }}</h4>@endif --}}@if ($fileStorage->is_directory)- <h4 class="dark:text-white">Directory Mount</h4>+ <h4 class="dark:text-white pt-4 border-t dark:border-coolgray-200">Directory Mount</h4>@else- <h4 class="dark:text-white">File Mount</h4>+ <h4 class="dark:text-white pt-4 border-t dark:border-coolgray-200">File Mount</h4>@endif<x-forms.input label="Source Path" :value="$fileStorage->fs_path" readonly />diff --git a/resources/views/livewire/project/service/storage.blade.php b/resources/views/livewire/project/service/storage.blade.phpindex df29362b7c..13a3f642d3 100644--- a/resources/views/livewire/project/service/storage.blade.php+++ b/resources/views/livewire/project/service/storage.blade.php@@ -35,8 +35,6 @@<livewire:project.shared.storages.all :resource="$resource" />@endif@if ($fileStorage->count() > 0)-- <h3 class="mt-4 pt-2 border-t dark:border-coolgray-200">Mounts</h3><div class="flex flex-col gap-2">@foreach ($fileStorage->sort() as $fileStorage)<livewire:project.service.file-storage :fileStorage="$fileStorage"