Recently I experienced a staging server running out of memory and after researching we found a log file that was 17g! Removing the file cleared it up but it would be nice to not worry about it again.
Servers for Hackers has a tutorial on this exact issue:
Laravel Forge (and Envoyer) keep your Laravel application’s storage directory persistent through deployments. One side effect of this is that your storage/logs/laravel.log file is always growing.
Linux systems come with Logrotate, which can help us manage your growing log files. It’s really simple – we can basically set it and forget it.
On your Forge installs, it’s a good idea to set this up and you can read the full article on Logrotate for Forge and be setup in a few minutes.Filed in: Laravel Tutorials / Forge
Join 31,000+ others and never miss out on new tips, tutorials, and more.
- Software Developer
Remote (US & Canada)
- 😎 Laravel Developer
- Junior, Mid, and Senior Software Engineers. Laravel / Vue. Saint Petersburg, FL
Saint Petersburg, FL and Remote
- Senior PHP Developer (Laravel)
The Interaction Design Foundation
- Fullstack Laravel Engineer (Munich/Remote) 💻
Munich, Germany or Remote
A look at what’s coming to Laravel 5.3
Laravel 5.3 is now released and available for everyone. Here is a quick look at some of these new features: Laravel S…
Adding your own Vue components to Spark
Christoph Rumpel has a new tutorial on integrating your own Vue components in Spark. The tutorial steps through what…