Closed bhushanmeetanshi closed 3 months ago
bin/fixperms ./var/www/html/pub/
@markshust i have also check and execute this command. but its not help ful for my scenario.
Hi, @bhushanmeetanshi
The pub
folder doesn't sync due to performance reasons.
If you want, feel free to put the pub
folder within the compose.dev.yaml
file.
bin/copyfromcontainer pub
should help you :)
done thanks @YevhenZvieriev for your kind reply.. bin/copyfromcontainer pub
it works !!
can you share the path? how can i put the path of this directory within the compose.dev.yaml
file.?
can i put like this @YevhenZvieriev ?
or can i put like this?
- ./pub:./src/pub
if i install module then every time i have to execute this bin/copyfromcontainer pub
command in magento docker???
@YevhenZvieriev
for example below this urls:
URL with Pub: https://www.abc.com/pub/media/catalog/product/a/b/ab.jpg URL without Pub: https://www.abc.com/media/catalog/product/a/b/ab.jpg
i want to check directory created after generate csv from the backend then how can i check it using magento docker?
how can i specify path in compose.dev.yaml
file?
Hi, @bhushanmeetanshi
if i install module then every time i have to execute this
bin/copyfromcontainer pub
command in magento docker???
If the pub folder is not synchronized, then indeed, this command will have to be run every time a new module is installed.
how can i specify path in
compose.dev.yaml
file?
To synchronize the pub
folder, you need to add a corresponding entry to the volumes
section for the services that require this synchronization.
You need to add to the volumes section to synchronize the local ./src/pub
folder with the /var/www/html/pub
folder in the container. Now any changes made to the local ./src/pub
folder will be reflected in the container and vice versa.
So, to specify the path for the pub
folder in compose.dev.yaml
just add the line - ./src/pub:/var/www/html/pub:cached
to the volumes
section.
If you have any more questions, I will be happy to help you :)
i want to check directory created after generate csv from the backend then how can i check it using magento docker?
Feel free to use the bin/bash
script, it drops into the bash prompt of your Docker container.
Thanks @YevhenZvieriev your answer is really helpful.. Thank you so much brother....
@YevhenZvieriev this is not working for without sampledata magento and manual setup installation. I have implemented same steps as you mentioned in this thread.
Description When i execute the command of bin/magento s:up command it will create file css and media files or user imports file of admin side or front end file. but with the docker of this magento 247 its not able to generated files. what to do?
Steps To Reproduce
Expected Result Vendor Directory or any other files should be created after executing all above steps for pub/static folder and pub/media folder. for example css,csv, images etc. by the vendor module. but not created
Actual Result Not created any directory in /pub/media folder and pub/static folder in magento 247 docker in (ubuntu)