mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
fix:new parser only in dev
This commit is contained in:
1 parent
1e24ab9146
commit
5394223f6b
3 files changed
+22
-6
No files matched your search
@@ -1167,10 +1167,23 @@ function dockerComposeParserForApplications(Application $application): Collectio
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
// ray($environment);
|
||||
$environment = $application->environment_variables()->where('application_id', $application->id)->get()->mapWithKeys(function ($item) {
|
||||
return [$item['key'] => $item['value']];
|
||||
});
|
||||
|
||||
// if ($environment?->count() > 0) {
|
||||
// $environment = $environment->map(function ($value, $key) use ($application) {
|
||||
// $found = $application->environment_variables()->where('key', $key)->where('application_id', $application->id)->first();
|
||||
// if ($found) {
|
||||
// $value = $found->value;
|
||||
// }
|
||||
|
||||
// return $value;
|
||||
// });
|
||||
// }
|
||||
|
||||
// Labels
|
||||
$fqdns = collect([]);
|
||||
if ($application?->serviceType()) {
|
||||
|
||||
Reference in new issue
Block a user