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(parser): enable gzip compression conditionally for Pocketbase images and streamline service creation logic
Andras Bacsai34135f2b4a7e
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex 7913240d21..328e84b9dc 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -2991,12 +2991,6 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int$applicationFound = ServiceApplication::where('name', $serviceName)->where('service_id', $resource->id)->first();if ($applicationFound) {$savedService = $applicationFound;- // $savedService = ServiceDatabase::firstOrCreate([- // 'name' => $applicationFound->name,- // 'image' => $applicationFound->image,- // 'service_id' => $applicationFound->service_id,- // ]);- // $applicationFound->delete();} else {$savedService = ServiceDatabase::firstOrCreate(['name' => $serviceName,@@ -3007,15 +3001,23 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int$savedService = ServiceApplication::firstOrCreate(['name' => $serviceName,'service_id' => $resource->id,+ ], [+ 'is_gzip_enabled' => true,]);}-// Check if image changedif ($savedService->image !== $image) {$savedService->image = $image;$savedService->save();}}++ // Pocketbase does not need gzip for SSE.+ if (str($savedService->image)->contains('pocketbase') && $savedService->is_gzip_enabled) {+ $savedService->is_gzip_enabled = false;+ $savedService->save();+ }+$environment = collect(data_get($service, 'environment', []));$buildArgs = collect(data_get($service, 'build.args', []));$environment = $environment->merge($buildArgs);