I am trying to upgrade store from Magento ver. 2.3.4 to Latest Magento ver.2.4.0
Can anybody advise me what are the ideal steps to upgrade ?
1 Answer
You can do the upgrade in this way :
1. create development server from the live site.
2. Upgrade the development website.
3. Do the bug solve and testing. and check everything is working fine.
4. Then you can move the only files from development server to live server.
5. Run the deploy and upgrade, caching and indexing command and check.
Here is the technical command to upgrade the magento :
Backup the composer.json file.
cp composer.json composer.json.bak
Add or remove specific packages based on your needs.
composer remove magento/product-community-edition --no-update
Indicate the Magento packages, both the edition and the version that you want to upgrade to.
composer require magento/product-community-edition=2.3.5 --no-update composer update
-
Thankyou very much Dhiren sir, this is helpful. Can you please add the technical commands/way to do so ? like( db backup or upgrade through cli). whichever is the best practice. Aug 24, 2020 at 5:04
-
1actual upgrade have 2 way. you can do it by command or manually file replace as well. Aug 24, 2020 at 5:07
-
Also can you please elaborate which files you are talking about in point no. 4 ? Aug 24, 2020 at 5:08
-
Exactly, the ideal practice says to Update Magento 2 with composer. Correct me if i am wrong. Aug 24, 2020 at 5:08
-