Skip to content

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.

fix: logical volumes could be overwritten with new path

Andras Bacsai5799e6d8b00c
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index b21ceac315..b34d9f174b 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -3092,10 +3092,9 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
$topLevel->get('volumes')->put($name, [
'name' => $name,
]);
-
LocalPersistentVolume::updateOrCreate(
[
- 'mount_path' => $target,
+ 'name' => $name,
'resource_id' => $originalResource->id,
'resource_type' => get_class($originalResource),
],
@@ -3206,7 +3205,6 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
}
}
// convert environment variables to one format
- ray($environment);
$environment = convertComposeEnvironmentToArray($environment);
// Add Coolify defined environments