Command Lines for Magerun to
- data-trimmed DB dumps (additional tables added)
- compile themes and run production mode 95% faster.
- optimize
NonComposerComponentRegistration.phpfile (saves between30-80mson page loading times) For more info visit the YAML file.
composer require qoliber/magerun
-
qoliber:magerun:theme:active: Get list of used themeswww-data@www-data@mageos-php-fpm:/var/www/html$ ./n98-magerun2.phar qoliber:magerun:theme:active --theme Qoliber/default --theme Magento/luma --theme Hyva/default --theme Magento/backend adsasd
-
qoliber:magerun:locale:active: Get list of active localeswww-data@mageos-php-fpm:/var/www/html$ ./n98-magerun2.phar qoliber:magerun:locale:active en_US pl_PL
-
qoliber:magerun:mode:production: Set production mode but compile only used themes and localesphp bin/magento deploy:mode:set productionn98-magerun2.phar qoliber:magerun:mode:production2 store views
2 locales2 store views
2 localesTime: Execution time: 49.60s Execution time: 4.13s 8 store views
2 locales8 store views
2 localesTime: Execution time: 373.39s Execution time: 5.57s
-
-
qoliber:magerun:non-composer-autoloader: Removesglobfromapp/etc/NonComposerComponentRegistration.php- use only in production mode$registrationFiles = array ( 0 => '/var/www/html/app/code/MerchantUniqueFeatures/ShippingBoxes/registration.php', 1 => '/var/www/html/app/code/MerchantUniqueFeatures/Showoutofstockprice/registration.php', 2 => '/var/www/html/app/code/MerchantUniqueFeatures/Extensions/registration.php', 3 => '/var/www/html/app/code/MerchantUniqueFeatures/UrlOptimization/registration.php', 4 => '/var/www/html/app/code/MerchantUniqueFeatures/LayoutProcessorPlugin/registration.php', 5 => '/var/www/html/app/code/MerchantUniqueFeatures/AutoAssignSources/registration.php', 6 => '/var/www/html/app/code/MerchantUniqueFeatures/StockFilter/registration.php', 7 => '/var/www/html/app/code/MerchantUniqueFeatures/Pay2Ship/registration.php', // 97 => '/var/www/html/app/design/frontend/MerchantUniqueTheme/Theme1/registration.php', 98 => '/var/www/html/app/design/frontend/MerchantUniqueTheme/Theme2/registration.php', [...]
Enjoy, @qoliber team