A custom module for astrodistribution.com (Magento 2).
bin/magento maintenance:enable
php ./composer.phar clear-cache
php ./composer.phar require astrodistribution/core:*
bin/magento setup:upgrade
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy \
--area adminhtml \
--theme Magento/backend \
-f en_US en_GB
bin/magento setup:static-content:deploy \
--area frontend \
--theme Smartwave/porto \
-f en_US en_GB
bin/magento maintenance:disable
bin/magento cache:enable
bin/magento maintenance:enable
php ./composer.phar remove astrodistribution/core
php ./composer.phar clear-cache
composer require astrodistribution/core:*
bin/magento setup:upgrade
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy \
--area adminhtml \
--theme Magento/backend \
-f en_US en_GB
bin/magento setup:static-content:deploy \
--area frontend \
--theme Smartwave/porto \
-f en_US en_GB
bin/magento maintenance:disable
bin/magento cache:enable
If you have problems with these commands, please check the detailed instruction.