I don't know what's causing it, but you could add those commands to the deployment script so it runs them automatically when you deploy to the server.
Nov 11, 2018
8
Level 2
Deploying with Forge resets file permisssions
I'm running this on a Laravel Forge server, and periodically (perhaps after a deploy I'm not sure) the file permissions on the Laravel.log file are changing, or at least I'm getting an error that it can't open the laravel.log file. and I have to go to back in and run these commands :
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
Does anyone know the cause of this?
Please or to participate in this conversation.