Upgrading Ruby for a Rails application
A quick reminder how to upgrade a Ruby version for a Rails Application.
Update rbenv
$ cd /home/daniel/.rbenv/plugins/ruby-build && git pull && cd -
Install desired Ruby version
$ rbenv install 2.3.3
Use Ruby version everywhere
$ rbenv global 2.3.3
Change into the application directory, then:
$ rbenv local 2.3.3
This will put the version number in .ruby-version
.
Don’t forget to adjust config/deploy.rb
.
Install bundler
$ gem install bundler
Install sidekiq
$ gem install sidekiq
Adjust Apache site configuration
If using Phusion Passenger with an Apache server, change the
PassengerRuby
path to point to the ruby
binary in the site
configuration:
# /etc/apache2/sites-available/my-ruby-site.conf
PassengerRuby /home/daniel/.rbenv/versions/2.3.3/bin/ruby
Restart passenger
$ passenger-config restart-app
I’ll update this from time to time.
Post date
Mon 12 Dec 2016Tags
Share
Recent posts
Exit ThinkPad T430s, enter ThinkPad T480s
Linux and VirtualBox on a T480s with high-resolution display
What I like and dislike about Ubuntu 18.04