104 Updating Rails LTS to a newer version

Updated . Posted . Visible to the public.

This document assumes you have installed Rails LTS before and want to update to a new version of the Rails LTS gem. As a subscriber to the Rails LTS service, you will be notified whenever a new version for Rails LTS becomes available.

  1. Run the following comment within your Rails project directory:

     bundle update rails
    

    After updating, check that your Gemfile.lock contains the expected changes.

    If booting Rails now gives you this error:

    Missing the Rails 2.3.18 gem. Please gem install -v=2.3.18 rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

    ... then open config/environment.rb within your project directory and delete the following line:

    RAILS_GEM_VERSION = '2.3.xx' unless defined? RAILS_GEM_VERSION
    
  2. Confirm that you are running the latest version.

  3. Follow your normal release process (run tests, deploy to staging, do smoke testing, deploy to production)

Congratulations! You have now successfully updated your application. If you have chosen to subscribe to the Rails LTS Notification List when signing up, you will be notified whenever a new patch for Rails LTS becomes available.

Henning Koch
Last edit
Michael Leimstädtner
Keywords
upgrade, recent, release
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to Rails LTS documentation (2013-05-29 21:22)