Magento 2 upgrade from 2.3.4 to 2.3.5

Switch to maintenance mode:

bin/magento maintenance:enable

Check current version

bin/magento --version
Magento CLI 2.3.4

Backup project

cp -rp composer.json composer.json_bk

Remove previous:

composer remove magento/product-community-edition --no-update

Append actual:

composer require magento/product-community-edition=2.3.5 --no-update

Remove update/ folder

rm -rf update

Ensure you have enough resource to execute composer update

Run:

php -d memory_limit=-1 /opt/cpanel/composer/bin/composer update

Clean up the cache

rm -rf generated/code/*
rm -rf var/page_cache/*
rm -rf var/cache/*

Clean cache:

bin/magento cache:clean

Update DB:

bin/magento setup:upgrade

Deactivate maintenance mode:

bin/magento maintenance:disable

Check current version:

bin/magento --version
Magento CLI 2.3.5

In my case I faced only one issue related to /home/lkerie/public_html/app/code/Magefan/Blog/Model/ImageUploader.php… Read the rest

Magento 2 useful commands

Enter Magento 2 folder

cd /home/username/public_html/

Reindex

php bin/magento indexer:reindex

Flush Cache

php bin/magento cache:flush

Magento version

php bin/magento --version

Disable a module

php bin/magento module:disable Magento_SOMEMODULE

Uninstall Magento

php bin/magento setup:uninstall

 

 

 

Source: https://www.measureddesigns.com/magento-2-useful-commands/… Read the rest