docs/developer/upgrades/4.0-to-4.1.mdx
Run the following command to update your gems to 4.1:
bundle update
rake railties:install:migrations
rails db:migrate
You have two options:
Spree 4.1 comes with a completely new mobile-first ultra-fast Storefront powered by Turbolinks.
To replace your current frontend with the new Spree UI follow these steps:
In your project root directory run:
rails g spree:frontend:copy_storefront
WARNING this will overwrite your current project templates, it's required for the new UI, so if you'll be asked by the generator what to do please choose A to proceed
Next, you will need to copy over two files:
config/initializers/spree_storefront.rbconfig/spree_storefront.ymlIf you overwrote any spree_frontend controllers you will need to either remove your local copies or move your custom logic to decorators
The same goes for helpers
You will also need to remove this line:
//= require spree/frontend/spree_auth
from vendor/assets/javascripts/spree/frontend.all.js file
If you wish to not move to the new Storefront UI it's still an option. Just proceed with the steps described below.
Copy over all views from Spree 4.0
Copy overviews from: https://github.com/spree/spree/tree/4-0-stable/frontend/app/views to your application views directory: app/views
WARNING remember to not overwrite your customizations!
Copy over all Stylesheets from Spree 4.0
Copy over stylesheets from: https://github.com/spree/spree/tree/4-0-stable/frontend/app/assets/stylesheets to app/stylesheets
WARNING remember to not overwrite your customizations!
Copy over all JavaScript from Spree 4.0
Copy over stylesheets from: https://github.com/spree/spree/tree/4-0-stable/frontend/app/assets/javascripts to app/javascripts
WARNING remember to not overwrite your customizations!
For information about changes contained within this release, please read the 4.1.0 Release Notes.