diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.php index 3aceb449b..5bfb56067 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.php index ef7f238e6..aff9e0ab7 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.php index 3fa0574d6..539e37885 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 @@