I\'d like to use Ruby 2.0 on Amazon OpsWorks, so I\'m trying the following:
OpsWorks now fully supports Ruby 2.0, in Layer settings you can specify the version of Rails, Bundler and Rubygems.
Opsworks already has support for Ruby 2.0, it's just not exposed through the UI. However, you can easily enable it by simply passing in the following custom JSON
{
"opsworks" : {
"ruby_version" : "2.0.0"
}
}
That's it! No need to install any custom packages or anything.
Deploy ruby 2.0 with rails 4.0 on AWS opsworks
{
"opsworks" : {
"ruby_version" : "2.0.0"
}
}
in your 'Rails App Layer', make sure you upgraded rubygem version to be 2.X (default is 1.8.24)
otherwise you will getting the require mysql2/mysql.rb [loadError] :(
LoadError: cannot load such file -- mysql2/mysql2
OpsWorks distributes some of their packages their own and Ruby 2.0 is not part of it right now. If you want to use Ruby 2.0 you have to install it your own.
Best, Daniel