Dear all team,
Please help, how to update my current ruby on rails from 7.0.1 to 7.0.8 from my local development of laptop debian os 12, into my vps digital oceean
Dear all team,
Please help, how to update my current ruby on rails from 7.0.1 to 7.0.8 from my local development of laptop debian os 12, into my vps digital oceean
Welcome to Rails! As a patch version upgrade, this should be very straightforward, but take it step-by-step until you gain the confidence to cut corners.
Read the general advice in the Upgrading Ruby on Rails guide. For this small upgrade, you can probably just:
bundle update
Take the time to do all the steps in the guide so you can learn and gain confidence for a bigger upgrade down the road. Start with the guides, but you can find plenty of blog posts or GoRails tutorials to learn more.
Break bundle update
into small steps, especially if something breaks, if bundle outdated
shows multiple gems with major-version updates, or if you aren’t familiar with each gem’s versioning strategy (not everyone follows semver). See man bundle-update
for ideas (i.e. bundle update --group test
, bundle update --minor
, bundle update rails
).
bundle outdated
, paying special attention to major-version upgrades, breaking changes. This is tedious, but most gems are good about telling you when you need to make changes.This will give you good practice for Rails 7.1.0. Rails is good about adding deprecation warnings in patch releases so you can prepare for the next minor/major releases. To find deprecation warnings, review your test logs for DEPRECATION WARNING:
(unless you’ve changed the default behavior in test.rb
).
This can vary, but just deploy however you did the initial release. Compare your deploy setup with this nice guide from Chris Oliver: https://gorails.com/deploy/
I use Capistrano, so it’s cap staging deploy
followed by cap production deploy
.