Created
December 26, 2021 22:26
-
-
Save Nav-Appaiya/79e7b35bdff833876611eb6bbe7dc709 to your computer and use it in GitHub Desktop.
Cannot rm because generated/code is not empty magento 2 issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this is because of permission issues with the generated/code folder, so try this | |
| sudo find var/ generated/ vendor/ pub/static/ pub/media/ app/etc/ -type f -exec chmod g+w {} \; | |
| sudo find var/ generated/ vendor/ pub/static/ pub/media/ app/etc/ -type d -exec chmod g+ws {} \; | |
| Also if your generated/ folder is getting populated once you removed everything, while shop is in maintance mode, | |
| this could have something to do with your cron job which is regenerating those files. Disable cronjobs first! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment