Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kirankarki
Created October 30, 2017 13:19
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save kirankarki/5b9009b2e8014937ca541821ee622bab to your computer and use it in GitHub Desktop.
Save kirankarki/5b9009b2e8014937ca541821ee622bab to your computer and use it in GitHub Desktop.
Notes on upgrading rails 5.0 to 5.1
1. Change rails version in Gemfile
> gem 'rails', '~> 5.1', '>= 5.1.4'
2. Remove Gemfile.lock
> git rm Gemfile.lock
3. Run bundle install command
> bundle install --jobs=5
4. Run rails' app update to apply changes to app
> rails app:update
Notes: check the differences first by choosing 'd' and then, choose 'Y or 'n' accordingly.
5. Run update to install dependencies, update db and remove old logs
> bin/update
@Freakachoo
Copy link

Thank you for the instruction!

5. Run update to install dependencies, update db and remove old logs
> bin/update

Is this should be bundle update? What is the command here?

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