If you’re on an older version than 4.3 please follow previous upgrade guides and perform those upgrades incrementally, eg.
Update Gems
Run the following command to update your gems to 4.4:Remove gems merged into Spree Core
These gems were merged into Spree Core in version 4.4. All of their functionality is now included in thespree
gem so you can remove them.
(Optional) Remove Spree Digital
If you used that gem in the past you need to remove it. Digital products are now incorporated into Spree core and you cannot use that gem anymore.- Remove
spree_digital
from yourGemfile
(Optional) Remove Spree Wishlist
If you used that gem in the past you need to remove it. Wishlists are now incorporated into Spree core and you cannot use that gem anymore.- Remove
spree_wishlist
from yourGemfile
- (Optional) Remove
//= require spree/frontend/spree_wishlist
fromvendor/assets/javascripts/spree/frontend/all.js
- (Optional) Remove
*= require spree/frontend/spree_wishlist
fromvendor/assets/stylesheets/spree/frontend/all.css
Update gems
Install missing migrations
Run migrations
Run install generators
This will copy some files fromspree_backend
to your application.
spree_frontend
you need to run the frontend install generator as well:
Additional fixes and hints
Make sure that Node is available in your cloud environment
On Heroku, you need to add the node buildpack - https://devcenter.heroku.com/articles/buildpacks#using-multiple-buildpacksAdd Spree ActiveJob queues to your Sidekiq config
Spree uses ActiveJob for processing long running operations to not interrupt your web server performance. If you’re using Sidekiq you need to update yourconfig/sidekiq.yml
file and 2 new queues:
spree_stock_location_stock_items
spree_webhooks