mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 16:15:17 +00:00
refactor(file-transfer): replace base64 encoding with direct file transfer method in various components for improved clarity and efficiency
This commit is contained in:
1 parent
fe2c4fd1c7
commit
feacedbb04
8 files changed
+36
-51
No files matched your search
@@ -1069,9 +1069,9 @@ function validateComposeFile(string $compose, int $server_id): string|Throwable
|
||||
}
|
||||
}
|
||||
}
|
||||
$base64_compose = base64_encode(Yaml::dump($yaml_compose));
|
||||
$compose_content = Yaml::dump($yaml_compose);
|
||||
transfer_file_to_server($compose_content, "/tmp/{$uuid}.yml", $server);
|
||||
instant_remote_process([
|
||||
"echo {$base64_compose} | base64 -d | tee /tmp/{$uuid}.yml > /dev/null",
|
||||
"chmod 600 /tmp/{$uuid}.yml",
|
||||
"docker compose -f /tmp/{$uuid}.yml config --no-interpolate --no-path-resolution -q",
|
||||
"rm /tmp/{$uuid}.yml",
|
||||
|
||||
Reference in new issue
Block a user