I glade to here that Magento has produce new version its called 2.3.4 with some essential fixes and some new module which is required to in this compititive world.
There are 2 ways using that we can upgrade magento version.
- Through Composer
- Update 2.3.x to 2.3.4 via Web Setup Wizard
Note: Before update anything just backup current magento files and folders and Database so if there will come any problem and that not fix quickly then you can restore backup.
For Magento command you can check our Magento 2 Useful Command List
Through Composer
Step 1: Put your store in Maintenance Mode
1 |
php bin/magento maintenance:enable |
Step 2: Run the composer command to get the latest version (2.3.4)
1 |
composer require magento/product-community-edition=2.3.4 --no-update |
Step 3: Run the composer update (this command will also fetch any available 3rd party extensions where updates are available)
1 |
composer update |
Step 4: Clean the Magento Cache
php bin/magento cache:clean
Step 5: Remove cache & generated folder
1 |
rm -rf var/cache/* var/page_cache/* generated/code/* |
Step 6: Upgrade Magento Database and Schema
1 |
php bin/magento setup:upgrade |
Step 7: Compile Magento Code (If you’re running in Production Mode)
1 |
php bin/magento s:d:c |
Step 8: Give permission
1 |
sudo chmod -R 777 var generated pub/static/ |
Step 9: Deploy Static Content (If you’re running in Production Mode)
1 |
php bin/magento s:s:d en_US -f |
Step 10: Clean the Magento Cache
1 |
php bin/magento c:c |
Optional: Clear Varnish
1 |
sudo service varnish restart |