How to upgrade extension
To upgrade the extension, follow these steps:
- Backup your store's database and web directory.
- Login to your server's SSH console and navigate to the root directory of the Magento 2 store.
- Run the command below to update the current extension with all dependencies:
composer require mirasvit/module-review:* --update-with-dependencies
Note
If you have the Hyva installed, run:composer require mirasvit/module-review:* mirasvit/module-review-hyva:* mirasvit/module-comment-hyva:* --update-with-dependencies
Note
In some cases, the command above is not applicable; neither is it possible to update just the current module, nor need to upgrade all the Mirasvit modules in a bundle. In this case, the command above will be of no effect.
Run insteadcomposer update mirasvit/*
command. It will update all the Mirasvit modules installed in your store.
- Run the command below to enable the extension:
php -f bin/magento module:enable Mirasvit_Core Mirasvit_Review Mirasvit_Comment
Note
If you have the Hyva installed, run:php -f bin/magento module:enable Mirasvit_Core Mirasvit_Review Hyva_MirasvitReview Mirasvit_Comment Hyva_MirasvitComment
- Run the command below to install updates:
php -f bin/magento setup:upgrade
- Run the command below to clean the cache:
php -f bin/magento cache:clean
- Deploy static view files:
rm -rf pub/static/frontend/*; rm -rf pub/static/backend/*; rm -rf var/view_preprocessed/*; php -f bin/magento setup:static-content:deploy
If you have the Hyva installed, run:
cd /path/to/theme/web/tailwind/ npm run build-prod cd /path/to/project/ rm -rf pub/static/frontend/*; rm -rf pub/static/backend/*; rm -rf var/view_preprocessed/*; php -f bin/magento setup:static-content:deploy