Magento 2

How to update magento with composer?

There are two way to upgrade magento2, choose one of them in following ways :
 
1) Only changes are inside composer.json file,
 
Replace "version": "2.0.2", to "version": "2.1.0", at line no.5 and Replace "magento/product-community-edition": "2.0.2", with "magento/product-community-edition": "2.1.0", at line no 17.
 
Now run command,
 
composer update
all required changes are automatically downloaded using composer inside your magento folder.
 
After successfully upgrade from magento 2.0.2 to 2.1.0 you need to run command,
 
Remove var folder and Remove pub/static folder all content
 
php bin/magento setup:upgrade
php bin/magento indexer:reindex
php bin/magento setup:static-content:deploy

php bin/magento cache:clean 

 

2) run the following commands to update my instance :

 

composer require "magento/product-community-edition:2.1.0" --no-update

composer update

Then you have to clean cache, run setup and redeploy static content :

 

 php bin/magento cache:clean

 php bin/magento setup:upgrade

 php bin/magento setup:static-content:deploy

 

1 Bình luận

  1. olidev nói:

    Sometimes authentication is also required when updating Magento 2 using composer. In that case, you need to enter your magento.repo authentication keys. https://magenticians.com/update-magento-2-using-composer/

Trở về
  • Magento plug-ins
  • Magento plug-ins

    Magento2 gave very good concept called Plugin   we can do what ever after and before core function and also we have...

  • HOW TO CREATE MENU IN MAGENTO 2 ADMIN
  • HOW TO CREATE MENU IN MAGENTO 2 ADMIN

    magento-2-admin- menu My previous tutorial show you how to create a simple module in Magento 2, learn more here: http://www.venustheme.com/how-to-create-magento-2-module/....