Updating plugin
Replace the plugin directory with the one from the new package, clear the generated code and run setup:upgrade. Presentations and uploaded viewers are kept.
Presentations and uploaded viewer versions are stored in pub/media/orbitvu and are kept during the update. The default Orbitvu Viewer is updated together with the plugin.
Back up the database and the pub/media/orbitvu directory before updating.
- Download the new
OrbitvuShM2-<version>.zippackage from your ORBITVU SUN account. - Replace the plugin directory and clear the generated code, then run the Magento update commands:
unzip OrbitvuShM2-<version>.zip -d orbitvu-package
rm -rf <magento_root>/app/code/Orbitvu/SelfHostedV2
cp -r orbitvu-package/app <magento_root>/
cd <magento_root>
rm -rf generated/code/* generated/metadata/*
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:flushRemove the old directory instead of copying over it: copying over keeps files that the new version no longer has. Clearing generated/ is needed because code generated for the previous version can stop bin/magento before setup:upgrade regenerates it.
With the Hyvä compatibility module installed, replace it the same way before setup:upgrade:
rm -rf <magento_root>/app/code/Orbitvu/SelfHostedV2Hyva
cp -r orbitvu-package/hyva/app <magento_root>/On Adobe Commerce Cloud, replace the directories in your project repository, then commit and push.