jackbrycesmith / laravel-caprover-template

Template to deploy a Laravel app in docker for CapRover
MIT License
127 stars 44 forks source link

Error permission storage #3

Closed helio-cg closed 4 years ago

helio-cg commented 4 years ago

without executing a deploy it always returns the same permission error in the storage directory

helio-cg commented 4 years ago

thank you very much, this error is already solved

germanllop commented 4 years ago

There's an issue when the crontab generate log files, those files are owned by root because of the crontab that executes it and when there is an actual error it can't be logged because the application can't access that log file created by the crontab schedule, you can avoid it echoing that line to the user that executes the web server:

RUN (crontab -l ; echo " * /usr/local/bin/php /srv/app/artisan schedule:run >> /dev/null 2>&1") | crontab -u -