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
Gemfilethat includesrackandpuma - A committed
Gemfile.lockwith thex86_64-linuxplatform - A
config.ruentry point - A supported Ruby version declared in the
Gemfileor withCC_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