php artisan optimize command eat all ram space
07 Jun 2018Solution 1
Working try first command, not use second one
composer update --no-scripts
composer dump-autoload -o
Solution 2
Not trid yet
composer dumpautoload
composer update
Ref
- https://github.com/laravel/framework/issues/18383
- https://laracasts.com/discuss/channels/general-discussion/composer-update-script-php-artisan-clear-compiled-handling-the-pre-update-cmd-event-returned-with-an-error?page=2