2.1 to 2.2
This guide covers upgrading a 2.1.x Spree store, to a 2.2.x store.

Overview

This guide has been written from the perspective of a blank Spree 2.1.x store with no extensions.
If you have extensions that your store depends on, you will need to manually verify that each of those extensions works within your 2.2.x store once this upgrade is complete. Typically, extensions that are compatible with this version of Spree will have a 2-2-stable branch.

Upgrade Rails

For this Spree release, you will need to upgrade your Rails version to at least 4.0.6.
1
gem 'rails', '~> 4.0.6'
Copied!

Upgrade Spree

For best results, use the 2-2-stable branch from GitHub:
1
gem 'spree', github: 'spree/spree', branch: '2-2-stable'```
2
3
Run `bundle update spree`.
4
5
## Copy and run migrations
6
7
Copy over the migrations from Spree (and any other engine) and run them using
8
these commands:
9
10
rake railties:install:migrations
11
rake db:migrate
12
13
## Read the release notes
14
15
For information about changes contained with this release, please read the [2.2.0 Release Notes](http://guides.spreecommerce.org/release_notes/spree_2_2_0.html).
16
17
### Rename assets
18
19
As mentioned in the release notes, asset paths have changed. Change the references on the left, to the ones on the right:
20
21
* `admin/spree_backend` => `spree/backend`
22
* `store/spree_frontend` => `spree/frontend`
23
24
This applies across the board on Spree, and may need to be done in your store's extensions.
25
26
### Paperclip settings have been removed from master
27
28
Please consult [this section](http://guides.spreecommerce.org/release_notes/spree_2_2_0.html#paperclip-settings-have-been-removed) of the release notes if you were using custom Paperclip settings. This will direct you what to do in that particular case.
29
30
## Verify that everything is OK
31
32
Click around in your store and make sure it's performing as normal. Fix any deprecation warnings you see.
Copied!
Last modified 2mo ago