1.0 to 1.1
This guide covers upgrading a 1.0.x Spree store, to a 1.1.x store.

Overview

This guide has been written from the perspective of a blank Spree 1.0.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 1.1.x store once this upgrade is complete. Typically, extensions that are compatible with this version of Spree will have a 1-1-stable branch.

Upgrade Rails

Spree 1.1 depends on any Rails 3.2 release after Rails 3.2.9. Ensure that you have that dependency specified in your Gemfile:
1
gem 'rails', '~> 3.2.9'```
2
3
Along with this, you may have to also update your assets group in the Gemfile:
4
5
```ruby
6
group :assets do
7
gem 'sass-rails', '~> 3.2.5'
8
gem 'coffee-rails', '~> 3.2.1'
9
gem 'uglifier', '>= 1.0.3'
10
end
11
12
gem 'jquery-rails', '2.1.4'
Copied!
For more information, please refer to the Upgrading Ruby on Rails guide.

Upgrade Spree

For best results, use the 1-1-stable branch from GitHub:
1
gem 'spree', github: 'spree/spree', branch: '1-1-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
## Remove references to spree_api assets
14
15
Spree API no longer provides any asset files, so references to these must be removed from:
16
17
* app/assets/stylesheets/store/all.css
18
* app/assets/stylesheets/admin/all.css
19
* app/assets/javascripts/store/all.js
20
* app/assets/javascripts/admin/all.js
21
22
## Read the release notes
23
24
For information about what has changed in this release, please read the [1.1.0 Release Notes](http://guides.spreecommerce.org/release_notes/spree_1_1_0.html).
25
26
## Verify that everything is OK
27
28
Click around in your store and make sure it's performing as normal. Fix any deprecation warnings you see.
Copied!
Last modified 2mo ago