Aug 28, 2024
0
Level 7
(sail-linuxmint) Correct way to set file permissions?
On creating a new project (sail) I ran into an issue where there were permissions denied in storage. The easy way to fix this was to se storage with chmod 777 but a lot of people said it was not a good idea to do this.
Eventually I got it to work with these commands, is this best practice? : docker exec example-app-laravel.test-1 chmod -R 775 docker exec example-app-laravel.test-1 chgrp -R sail storage bootstrap/cache
Please or to participate in this conversation.