- some of my Laravel's scheduled tasks fail because the default
memory_limit
of PHP is too low - running
php -d memory_limit=xxx artisan schedule:run
does not seem to have any effect - there is no way to provide a custom php.ini for CLI-only on Clever Cloud
This patch adds a simple way to set memory_limit
using a CLI_MEMORY_LIMIT
environment variable.
This new setting only applies when the Laravel app is booted from CLI (like when running php artisan ...
commands) and have no effect on the memory_limit
value in web context.