Skip to main content
Before proceeding to upgrade, please ensure you’re at Spree 4.10
Spree 5.0 is a major upgrade that introduces many breaking changes. The major changes are:

Prerequisites

Before upgrading, please ensure you have the following prerequisites:

Upgrade steps

1. Remove old frontend/backend Spree gems

Remove any code referencing Spree::Backend, Spree::Fronted or Spree::Auth from your application, especially from config/initializers/spree.rb.

2. Update main Spree gem

3. Install and run missing migrations

4. Add new Spree gems

And run the following generators:

5. Migrate from Spree Auth Devise gem

If you previously used the spree_auth_devise gem, you will need to run some commands to create User and connect it to Spree. We don’t use the spree_auth_devise gem anymore to allow you more control over the authentication and access to all Devise options directly in your application. First, install Devise and run the Devise generator:
Create Spree::User model:
Add the following code to your Spree::User model:
In you config/initializers/spree.rb file, add the following code:
Now run the new authentication generator to connect your Spree::User model to Spree:
And if you’re using the default spree storefront, please run the following generator:
This will add devise routes and create controllers for the storefront. And that’s it! You can now log in to the admin panel and storefront using your existing users.

6. Migrate data to the new format

In Spree 5 we changed a bit of the data in some models so you will need to run these commands to fix it:

Taxons

Read the release notes

For information about changes contained within this release, please read the Spree 5.0 Release Notes.