Ruby apps in cPanel (Setup Ruby App)

  1. Open "Setup Ruby App" (group "Software").
  2. Choose the Ruby version.
  3. "App Directory" - the app folder, for example rubyapp.
  4. "App Domain/URI" - the domain and path where the app opens.
  5. Click "Setup".
New Ruby application
New Ruby application

The panel creates the folder and environment. Upload your code and config.ru - the web server (Passenger) starts the app through it. Gems are added in the app card under "Existing applications".

# config.ru for a minimal app
run lambda { |env| [200, {'Content-Type' => 'text/plain'}, ['Hello from Ruby']] }

Application Manager

"Application Manager" registers an already uploaded Passenger app (Ruby, Node.js or Python) on a domain. For Node.js and Python the dedicated tools are easier: Node.js, Python.

Application Manager
Application Manager
Questions and answers
config.ru in the app folder.