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: volume names in services

Andras Bacsaibd856f7f67c2
diff --git a/app/Models/Service.php b/app/Models/Service.php
index 49d8b9f33b..b4a959fa62 100644
--- a/app/Models/Service.php
+++ b/app/Models/Service.php
@@ -318,8 +318,8 @@ class Service extends BaseModel
]
);
} else if ($type->value() === 'volume') {
- $slug = Str::slug($source, '-');
- $name = "{$savedService->service->uuid}_{$slug}";
+ $slugWithoutUuid = Str::slug($source, '-');
+ $name = "{$savedService->service->uuid}_{$slugWithoutUuid}";
if (is_string($volume)) {
$source = Str::of($volume)->before(':');
$target = Str::of($volume)->after(':')->beforeLast(':');
@@ -336,7 +336,7 @@ class Service extends BaseModel
'resource_type' => get_class($savedService)
],
[
- 'name' => $name,
+ 'name' => $slugWithoutUuid,
'mount_path' => $target,
'resource_id' => $savedService->id,
'resource_type' => get_class($savedService)
diff --git a/config/sentry.php b/config/sentry.php
index fbddc758e4..22e020eb9f 100644
--- a/config/sentry.php
+++ b/config/sentry.php
@@ -7,7 +7,7 @@ return [
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
- 'release' => '4.0.0-beta.60',
+ 'release' => '4.0.0-beta.61',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),
diff --git a/config/version.php b/config/version.php
index b61b5c9de3..8559368c39 100644
--- a/config/version.php
+++ b/config/version.php
@@ -1,3 +1,3 @@
<?php
-return '4.0.0-beta.60';
+return '4.0.0-beta.61';
diff --git a/versions.json b/versions.json
index d43babfdaa..9c68879024 100644
--- a/versions.json
+++ b/versions.json
@@ -4,7 +4,7 @@
"version": "3.12.36"
},
"v4": {
- "version": "4.0.0-beta.60"
+ "version": "4.0.0-beta.61"
}
}
}