nanobox-io / nanobox-engine-ruby

Engine for running Ruby apps on Nanobox
https://nanobox.io
MIT License
10 stars 9 forks source link
developer-tools devtools docker nanobox ruby ruby-apps ruby-engine

Ruby

This is a Ruby engine used to launch Ruby apps on Nanobox. It installs all binaries to run a Ruby app.

Usage

To use the Ruby engine, specify ruby as your engine in your boxfile.yml.

run.config:
  engine: ruby

Build Process

When then engine builds and prepares the code, it runs the following:

Configuration Options

This engine exposes configuration options through the boxfile.yml, a yaml config file used to provision and configure your app's infrastructure when using Nanobox.

Overview of Basic Boxfile Configuration Options

run.config:
  engine: ruby
  engine.config:
    runtime: ruby-2.2
    postgresql_client_version: "9.6"

runtime

Specifies which Ruby runtime and version to use. The following runtimes are available:

run.config:
  engine.config:
    runtime: 'ruby-2.3'

postgresql_client_version

If the 'pg' gem is detected the engine will install the postgresql client. You can specify the version to install using postgresql_client_version in your boxfile.yml.

NOTE: The engine will try to detect the correct version first.

run.config:
  engine.config:
    postgresql_client_version: "9.6"

Ruby on Nanobox

For more information about using Ruby on Nanobox, view the Ruby guides.

Help & Support

This is an engine provided by Nanobox. If you are running into an issue with the engine, feel free to create a new issue on this project.