Getting started with Ruby



Jelastic provides Ruby support via:

  • Passenger (Apache or Nginx)
  • Unicorn (Nginx)
  • Puma (Nginx)

Each run your choice of Ruby version:

  • 1.9.3
  • 2.0.0
  • 2.1.5
  • 2.2.3

You can switch Ruby version at any time in the Jelastic dashboard.

Dependency Management

Dependencies are resolved automatically by Bundler. Simply list required gems in your Gemfile and Bundler will search to install them for you. If you need to resolve a gem dependency from another location, specify its repository URL in your Gemfile and Bundler will download and install it from there for you instead.

Jelastic offers all 3 standard deployment modes (developmenttest, production) which you can select from during deployment, and change later, in the Jelastic dashboard.

Bundler attempts to resolve your dependencies in 3 cases:

  • Initial deployment
  • Switching Ruby version
  • Change of deployment mode

Bundler’s actions are logged and available to you in bundle_install.log

Supported Frameworks

Any Ruby framework – just add the corresponding dependencies to your Gemfile! Here are some examples of popular frameworks you can run on Jelastic:

  • Ruby on Rails
  • Sinatra
  • Rack
  • therubyracer
  • Ramaze
  • ExecJS

Deploying Ruby apps

Jelastic provides a choice of 2 deployment methods for your Ruby application to suit your preferred workflow.

  • Deploy from git or svn
  • Deploy using a file archive (zip, tar.gz)

Ruby application deployment can take a few minutes due to high CPU consumption during the deployment process

Post-deployment configuration

Jelastic executes any post-deployment configuration actions (e.g. db:migrate) via rake according to commands found in the rake_deploy file within your application root. This file is deleted after successful execution, and results are logged and available to you in rake_deploy.log


Need More Help?

If you're still having problems, get in touch with our 24/7 support team! We'll be more than happy to help.