YunoHost-Apps / pixelfed_ynh

The federated image shareing service Pixelfed for YunoHost
https://pixelfed.org/
GNU Affero General Public License v3.0
44 stars 15 forks source link

Implement logrotate on laravel log #199

Closed lapineige closed 1 year ago

lapineige commented 1 year ago

Laravel log file is huge after a while, because it's never cleaned up. It's already 22kB after first running Pixelfed.

We should implement logrotate to save storage space.

File to logrotate : /var/www/pixelfed/storage/logs/laravel.log

lapineige commented 1 year ago

I need help from @YunoHost-Apps/apps-group team please: how can I add the logrotate config on upgrade ? Is it safe to do it all the time even if it exists already ? Thanks :pray:

See: https://github.com/YunoHost-Apps/pixelfed_ynh/blob/testing/scripts/upgrade#L251