Notes on Ruby, Rails projects
NodeChef automatically detects your project as Ruby, Rails when the Gemfile and Gemfile.lock is found in the root directory of the project.
Click here to see supported ruby, bundler, jruby versions
Your first build runs slower than subsequent builds as NodeChef caches dependencies between builds.
MRI.
For MRI, specify the version of Ruby in your Gemfile as follows:
JRuby
For JRuby, specify the version of Ruby in your Gemfile based on the version of JRuby your app uses.
-
For 1.9 mode, use the following:
ruby '1.9.3', :engine => 'jruby', :engine_version => '1.7.25' -
For 2.0 mode, use the following:
ruby '2.0.0', :engine => 'jruby', :engine_version => '1.7.25' -
For JRuby version >= 9.0, mode, use the following:
ruby '2.2.3', :engine => 'jruby', :engine_version => '9.0.5.0'
If you try to use a binary that is not supported, staging your app fails with the following error message:
The Ruby buildpack does not support the pessimistic version operator ~> on the Gemfile ruby directive for JRuby.