4.3 to 4.4
This guide covers upgrading a 4.3 Spree application to Spree 4.4.
If you're on an older version than 4.3 please follow previous upgrade guides and perform those upgrades incrementally, eg.
This is the safest and recommended method.
gem 'spree', '>= 4.4.0.rc1'
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.
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.
- 2.(Optional) Remove
//= require spree/frontend/spree_wishlistfrom
- 3.(Optional) Remove
*= require spree/frontend/spree_wishlistfrom
gem 'spree_backend', '>= 4.4.0.rc1'
This requires that you have both Node and yarn installed on your system.
bin/rails g spree:backend:install
From now on when you run your app locally you need to use
On Heroku, you need to add the node buildpack - https://devcenter.heroku.com/articles/buildpacks#using-multiple-buildpacks
Spree uses ActiveJob for processing long running operations to not interrupt your web server performance. You need to update your
config/sidekiq.ymlfile if you're using the Sidekiq gem.
Make sure that
spree_webhooksqueues are there. You can check spree_starter's config as a guideline.
Spree 4.4 introduces webhook events for most of the Spree resources (Products, Orders, Customers, etc). If you wish to disable this globally you can set the environment variable:
If you would like to disable firing webhooks for certain elements of your application you can wrap these methods in a block:
... run your code here ...
Webhooks do not fire on touch events. Webhooks also do not do anything until there is a first webhook subscriber created which can be done in the Admin Dashboard or via Platform API.
Please change in your codebase:
If you have any questions or suggestions feel free to contact us via email or through Spree slack channels