Skip to content

Commit

Permalink
Use Magento base path
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell authored Oct 3, 2024
1 parent d8c75de commit ca46372
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Model/Adapter/StorageObjectManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,9 @@ public function getObject(string $path): ?StorageObject
if ($object->exists()) {
// Download the image from GCS to local filesystem in the background
$cmd = sprintf(
'MAGE_RUN_CODE=%s bin/magento outeredge:gcs:download %s %s',
'MAGE_RUN_CODE=%s %s/bin/magento outeredge:gcs:download %s %s',
escapeshellarg($storecode),
BP,
escapeshellarg($prefixedPath),
escapeshellarg($path)
);
Expand All @@ -333,8 +334,9 @@ public function getObject(string $path): ?StorageObject
// Download the image from the fallback URL and upload it to GCS for future usage
$url = $fallback . $path;
$cmd = sprintf(
'MAGE_RUN_CODE=%s bin/magento outeredge:gcs:upload %s %s %s',
'MAGE_RUN_CODE=%s %s/bin/magento outeredge:gcs:upload %s %s %s',
escapeshellarg($storecode),
BP,
escapeshellarg($url),
escapeshellarg($prefixedPath),
escapeshellarg($path)
Expand Down

0 comments on commit ca46372

Please sign in to comment.