mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
fix: add validation for missing docker compose file
This commit is contained in:
1 parent
a5dd4cab52
commit
43409f3ff0
1 file changed
+3
@@ -88,6 +88,9 @@ function updateCompose(ServiceApplication|ServiceDatabase $resource)
|
||||
try {
|
||||
$name = data_get($resource, 'name');
|
||||
$dockerComposeRaw = data_get($resource, 'service.docker_compose_raw');
|
||||
if (! $dockerComposeRaw) {
|
||||
throw new \Exception('No compose file found or not a valid YAML file.');
|
||||
}
|
||||
$dockerCompose = Yaml::parse($dockerComposeRaw);
|
||||
|
||||
// Switch Image
|
||||
|
||||
Reference in new issue
Block a user