Skip to content

Instantly share code, notes, and snippets.

@parndt
Forked from ugisozols/gist:5983776
Last active December 19, 2015 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parndt/5997991 to your computer and use it in GitHub Desktop.
Save parndt/5997991 to your computer and use it in GitHub Desktop.

Upgrading from version 2.0.10 to version 2.1.x

This guide will guide you through the upgrade process from version 2.0.10 to version 2.1.×.

endprologue.

WARNING. This guide assumes that you will be upgrading from version 2.0.10 of Refinery CMS. If your application is not up-to-date we strongly recommend for you to upgrade it to version 2.0.10 before trying to upgrade to version 2.1.0.

WARNING. Before continuing make sure you have a backup copy of your application and database in case something goes wrong.

Updating gems

Open up your application’s Gemfile and change the version of the refinerycms gem entry from 2.0.10 to 2.1.0.

After you complete the steps above your Gemfile should look like this:

gem “refinerycms”, “~> 2.1.0”

Now run bundle install and let it install new gems.

Running Refinery’s CMS generator

Go to the terminal and run following command:

rails generate refinery:cms

This command will do a couple of things:

  • Add two css requires in application.css
  • Update app/views/sitemap/index.xml.builder template
  • Wrap config.action_mailer config in if config.respond_to?(:action_mailer) clause for each environment file located in app/config/environments
  • Copy new migrations
  • Run rake db:migrate and rake db:seed commands

NOTE: If you don’t want the generator to run rake db:migrate and rake db:seed commands pass the —skip_db option when invoking the generator:

rails generate refinery:cms —skip_db

Profit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment