mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
wip: server check instead of app check
This commit is contained in:
1 parent
01e942c6a0
commit
cd0da04ea2
3 files changed
+96
-8
No files matched your search
@@ -26,8 +26,11 @@ function format_docker_command_output_to_json($rawOutput): Collection
|
||||
->map(fn ($outputLine) => json_decode($outputLine, true, flags: JSON_THROW_ON_ERROR));
|
||||
}
|
||||
|
||||
function format_docker_labels_to_json($rawOutput): Collection
|
||||
function format_docker_labels_to_json(string|Array $rawOutput): Collection
|
||||
{
|
||||
if (is_array($rawOutput)) {
|
||||
return collect($rawOutput);
|
||||
}
|
||||
$outputLines = explode(PHP_EOL, $rawOutput);
|
||||
|
||||
return collect($outputLines)
|
||||
|
||||
Reference in new issue
Block a user