Closed ShawnWu33 closed 5 years ago
Same issues happen to var/page_cache/. I can see those folders inside the container, but see nothing from outside
inside container:
outside(OSX) :
I've experience the same problem as it. It seems like the www-data user in the container won't be able to write to the shared volume src/var/ even if the var and its sub directories are set to 777.
However, the report log can be written into the var/report directory when the Magento cause some error. It is a bit confusing for me.
Check the file docker-sync.yml
See that sync_excludes. if the generated directory is included here, it will not be synced by docker-sync
syncs: mage2_oneinternational_docker-sync: sync_userid: '1000' sync_strategy: 'native_osx' host_disk_mount_mode: 'cached' src: './src'
sync_excludes: [ '.idea', '.git', '.platform', '.travis', 'var/cache', 'var/sessions', 'var/page_cache', 'var/generation', 'var/composer_home', 'var/view_preprocessed', 'var/session', 'var/tmp', 'node_modules', 'generated/', 'vendor/', 'pub/static/', 'pub/media/' ]
Em ter, 16 de abr de 2019 às 22:00, Shawn Wu notifications@github.com escreveu:
Same issues happen to var/page_cache/. I can see those folders inside the container, but see nothing from outside inside container: [image: image] https://user-images.githubusercontent.com/13513690/56253412-938e1500-60ff-11e9-99d7-9b0bbaeeea9b.png outside(OSX) : [image: image] https://user-images.githubusercontent.com/13513690/56253486-e8ca2680-60ff-11e9-9d69-0787ef52c927.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/clean-docker/Magento2/issues/85#issuecomment-483897085, or mute the thread https://github.com/notifications/unsubscribe-auth/AmjOisZRotzvw6Ml_ZXOsBI6JjY4Z-pYks5vhnIggaJpZM4cz-XT .
--
Check the file docker-sync.yml See that sync_excludes. if the generated directory is included here, it will not be synced by docker-sync syncs: mage2_oneinternational_docker-sync: sync_userid: '1000' sync_strategy: 'native_osx' host_disk_mount_mode: 'cached' src: './src' # watch_args: '-v' sync_excludes: [ '.idea', '.git', '.platform', '.travis', 'var/cache', 'var/sessions', 'var/page_cache', 'var/generation', 'var/composer_home', 'var/view_preprocessed', 'var/session', 'var/tmp', 'node_modules', 'generated/', 'vendor/', 'pub/static/', 'pub/media/' ] Em ter, 16 de abr de 2019 às 22:00, Shawn Wu notifications@github.com escreveu: … Same issues happen to var/page_cache/. I can see those folders inside the container, but see nothing from outside inside container: [image: image] https://user-images.githubusercontent.com/13513690/56253412-938e1500-60ff-11e9-99d7-9b0bbaeeea9b.png outside(OSX) : [image: image] https://user-images.githubusercontent.com/13513690/56253486-e8ca2680-60ff-11e9-9d69-0787ef52c927.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#85 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AmjOisZRotzvw6Ml_ZXOsBI6JjY4Z-pYks5vhnIggaJpZM4cz-XT .
So I remove all var/ directories and pub/static from docker-sync.yml and restart the containers. But I still couldn't find the generated file. Should I also remove the watch_excludes list as well? Thanks,
after change docker-sync.yml you need run: docker-sync clean and after: ./stop and ./start
Em qua, 17 de abr de 2019 às 11:30, Dickens Zihua Fan < notifications@github.com> escreveu:
Check the file docker-sync.yml See that sync_excludes. if the generated directory is included here, it will not be synced by docker-sync syncs: mage2_oneinternational_docker-sync: sync_userid: '1000' sync_strategy: 'native_osx' host_disk_mount_mode: 'cached' src: './src' # watch_args: '-v' sync_excludes: [ '.idea', '.git', '.platform', '.travis', 'var/cache', 'var/sessions', 'var/page_cache', 'var/generation', 'var/composer_home', 'var/view_preprocessed', 'var/session', 'var/tmp', 'nodemodules', 'generated/', 'vendor/', 'pub/static/', 'pub/media/' ] Em ter, 16 de abr de 2019 às 22:00, Shawn Wu notifications@github.com escreveu: … <#m-8765909945941956568_> Same issues happen to var/page_cache/. I can see those folders inside the container, but see nothing from outside inside container: [image: image] https://user-images.githubusercontent.com/13513690/56253412-938e1500-60ff-11e9-99d7-9b0bbaeeea9b.png outside(OSX) : [image: image] https://user-images.githubusercontent.com/13513690/56253486-e8ca2680-60ff-11e9-9d69-0787ef52c927.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#85 (comment) https://github.com/clean-docker/Magento2/issues/85#issuecomment-483897085>, or mute the thread https://github.com/notifications/unsubscribe-auth/AmjOisZRotzvw6Ml_ZXOsBI6JjY4Z-pYks5vhnIggaJpZM4cz-XT .
So I remove all var/ directories and pub/static from docker-sync.yml and restart the containers. But I still couldn't find the generated file. Should I also remove the watch_excludes list as well? Thanks,
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/clean-docker/Magento2/issues/85#issuecomment-484114775, or mute the thread https://github.com/notifications/unsubscribe-auth/AmjOikg53RSPkhDSZRgaQPcvSY6WNOqvks5vhzAUgaJpZM4cz-XT .
--
I follow the steps. But when I ./start the container, it freezes at this and never continue.
Well, it seems like my work station takes a while to run this recopy. Now it works fine. Thanks for your answer!
Well, it seems like my work station takes a while to run this recopy. Now it works fine. Thanks for your answer!
Yes, this one had me confused as well but after an amount of time, it will run and finish.
Files in html/generated cannot be seen from outside of docker
I am currently using Magento 2.2. After I run php magento setup:static-content:deploy, static files been generated and saved in html/generated. I can see those file exist when I using docker bash (./shell in project folder). However, when I checked the mounting point on my local machine (which should be MYMAGENTO2/src), there are only some empty folders in src/generated folder.(I have already run chmod -R 777 generated/ on my magento root folder inside docker) It really caused me a lot of problems, for example, I can not see the code in generated/ folder, which make my x-debug cannot track the code and see what happened inside. Would you plz help me solve that?