mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 20:14:45 +00:00
Revert "refactor(file-transfer): replace base64 encoding with direct file transfer method in various components for improved clarity and efficiency"
This reverts commit feacedbb04.
This commit is contained in:
1 parent
393745b68c
commit
133e72336a
7 files changed
+48
-35
No files matched your search
@@ -159,7 +159,8 @@ class LocalFileVolume extends BaseModel
|
||||
$chmod = data_get($this, 'chmod');
|
||||
$chown = data_get($this, 'chown');
|
||||
if ($content) {
|
||||
transfer_file_to_server($content, $path, $server);
|
||||
$content = base64_encode($content);
|
||||
$commands->push("echo '$content' | base64 -d | tee $path > /dev/null");
|
||||
} else {
|
||||
$commands->push("touch $path");
|
||||
}
|
||||
@@ -174,9 +175,7 @@ class LocalFileVolume extends BaseModel
|
||||
$commands->push("mkdir -p $path > /dev/null 2>&1 || true");
|
||||
}
|
||||
|
||||
if ($commands->count() > 0) {
|
||||
return instant_remote_process($commands, $server);
|
||||
}
|
||||
return instant_remote_process($commands, $server);
|
||||
}
|
||||
|
||||
// Accessor for convenient access
|
||||
|
||||
Reference in new issue
Block a user