steffen-wirth
11/8/2016 - 3:41 PM

Update Magento2

Update Magento2

#http://magento.stackexchange.com/questions/98332/how-to-update-magento2-using-composer

composer require magento/product-community-edition 2.1.2 --no-update
composer update;

rm -rf var/di/* var/generation/* generated/*;
php bin/magento cache:flush;
php bin/magento setup:upgrade;
php bin/magento setup:di:compile;
rm -rf ./var/cache/* ./var/view_preprocessed/* ./var/page_cache/* ./pub/static/*;
php bin/magento setup:static-content:deploy -f --language de_CH --language="en_US";
echo "static content deployed";
echo 'Reindex soon...';
php bin/magento indexer:reindex;
echo 'Update ready';
echo "";