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
refactor: Remove unnecessary code in shared.php file
Andras Bacsaiff9b68b450bd
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex cd27794661..6b3ef10dc1 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -3631,6 +3631,14 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?intdata_forget($service, 'volumes.*.is_directory');data_forget($service, 'exclude_from_hc');+ $volumesParsed = $volumesParsed->map(function ($volume) {+ data_forget($volume, 'content');+ data_forget($volume, 'is_directory');+ data_forget($volume, 'isDirectory');++ return $volume;+ });+$payload = collect($service)->merge(['container_name' => $containerName,'restart' => $restart->value(),@@ -3661,6 +3669,7 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int$parsedServices->put($serviceName, $payload);}$topLevel->put('services', $parsedServices);+$customOrder = ['services', 'volumes', 'networks', 'configs', 'secrets'];$topLevel = $topLevel->sortBy(function ($value, $key) use ($customOrder) {