cancel
Showing results for 
Search instead for 
Did you mean: 

Image, cache and upload folder redirected to S3

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Image, cache and upload folder redirected to S3

Hi there, I am Ivan and I am new too Magento and have a puzzling issue, we have mounted an S3 bucket to our Kubernetes pod at /data using fuse. We have managed to set Magento to save new product images to a folder in the bucket, but not managed to get the cache folder to update. Also if we change the DirectoryFile.php after installing and run php bin/magento setup:di:compile then we get the following error:
Path "/data/test/media/theme_customization/1/etc/view.xml" cannot be used with directory "/var/www/html/"

 

Thanks in advance for the asssitance

1 REPLY 1

Re: Image, cache and upload folder redirected to S3

Solved the problem by moving the mount to the <magento_install_dir>/pub/media folder after the Magento install step in the docker file and then running the upgrade & compile commands. That way there is no need to fiddle with Magento's config files.