Skip to content
Ruby Rack

Deploy a Ruby Rack application

Clever Cloud supports applications built on the Rack interface with its Ruby runtime. The runtime installs dependencies with Bundler and starts the application’s config.ru through Puma.

A deployable Rack application needs:

  • A Gemfile that includes rack and puma
  • A committed Gemfile.lock with the x86_64-linux platform
  • A config.ru entry point
  • A supported Ruby version declared in the Gemfile or with CC_RUBY_VERSION

No custom run command or listening port is required: the runtime configures Puma and connects it to the managed NGINX server. Access environment variables with ENV["VARIABLE_NAME"].

Follow the complete Ruby Rack tutorial to create, test and deploy a minimal current application, or read the Ruby runtime reference for build hooks, Rake tasks, Puma settings and static files.

Last updated on