-
Notifications
You must be signed in to change notification settings - Fork 69
Upgrading Ruby with Moonshine
technicalpickles edited this page Oct 24, 2011
·
16 revisions
Moonshine supports installing several versions of Ruby easily out of the box, according to the value of the :ruby: key set in config/moonshine.yml. If you wish to upgrade or change the version installed when you initially deployed your server, it’s as simple as:
- Update the
:ruby:value in yourconfig/moonshine.yml(see options below) cap staging ruby:upgrade # test the installation, and test your app, on staging!cap production ruby:upgrade
The current options for the :ruby: configuration key are:
ree (default) |
Ruby Enterprise Edition 1.8.6-20090610 |
ree187 |
Ruby Enterprise Edition 1.8.7-2011.02 |
mri |
The ruby version available in Ubuntu from apt
|
src187 |
MRI 1.8.7-p249 compiled from source |
| @src192 | MRI 1.9.2-p290 compiled from source |
Adding your own custom Ruby version is possible by setting :ruby: my_custom_ruby and defining your own cap task in the ruby namespace within your recipes:
namespace :ruby do
task :my_custom_ruby do
remove_ruby_from_apt
# fetch, compile, whatever you need to do
end
endYou can have a look at the built-in tasks for examples.