If you already have a Ruby app, click Create Application so the Setup new application screen appears.
Fill in the fields for your Ruby App.
Select a Ruby version.
Choose your App directory where you will install the app
Choose your domain and URI where your App will be accessible. E.g. example.com/rubyapp
Click Setup
After your Ruby app has been created will be taken to an overview screen. Please note the Command for entering to virtual environment
From your cPanel home screen open Terminal
Enter the virtual environment command line. E.g. source /home/example/rubyvenv/rubyapp/2.4/bin/activate
Then change directory to your Ruby App directory. E.g. cd rubyapp
A basic basic Ruby “Hello World” script will be loaded by default. Using terminal you can use gem commands to install the frameworks and edit your config.ru to configure your Ruby app