Making laravel storage permissions easy
I have a production server where each time I use git to deploy or pull some changes from a repository new files are added laravel app folder and permissions are reassigned. Because of this I recently started reading about linux's ACL.
My plan is to deploy with my deploy user, after thad I will run the following command.
sudo setfacl -Rd -m u:deploy:rwx,g:www-data:rwx,o:rx /var/www/laravel-app-folder
Afaik this command will modify permissions and set defaults for future directories/files created in my app folder while giving the web server write access to laravel storage folder in order to avoid 500 errors.
Is this a good approach? Seems like the easier way to pull changes from repository using github and doing some ftp editing via SSH. I'm open to all kinds of suggestions.
Please or to participate in this conversation.