Skip to main content

Ruby

The Deploio Ruby build environment makes use of the Ruby Heroku Cloud Native Buildpack on both the paketo and heroku buildpack stacks, so behavior is identical regardless of stack.

Example App​

We have a basic Rails app in our examples repository. You can deploy it with nctl. This requires the rails command to be installed for the SECRET_KEY_BASE. If you don't have it, any long random string will do (127+ chars).

nctl create application rails \
--git-url=https://github.com/ninech/deploio-examples \
--git-sub-path=heroku-stack/ruby/rails-basic \
--env=SECRET_KEY_BASE=$(rails secret)

Buildpack Behavior​

The full behavior of the buildpack is documented here.

Ruby Version Detection​

The buildpack will attempt to detect the desired ruby version from the Gemfile.lock in the app source.

Node.js Runtime​

The Node.js runtime will only be installed if there is a package.json file present at the root of the repository.