Ruby is a dynamic, open-source programming language similar to Python and PERL. Initially developed on Linux, Ruby runs on most platforms, including UNIX, DOS, Windows, Macintosh, BeOS, and OS/2. Ruby’s simple syntax makes it readable for anyone familiar with modern programming languages.
The “Setup Ruby App” tool available on your Ruby hosting simplifies creating your Ruby project. It enables you to create, manage, and deploy your application.
Deploying Ruby on cPanel:
Click on the “Setup Ruby App” icon.
Select the Ruby version, define the application directory and application domain you wish to use, then click the “Setup” button.
Once configured, you should see a screen similar to the one below:
- App Directory: The folder containing the source files of the deployed application. If you need to modify this folder, it is recommended to delete and recreate the application with the appropriate folder instead of renaming it.
- App URI: The domain or URL where your application is accessible.
- Ruby Version: Allows you to modify your application’s Ruby version.
- Modules: Lets you install dependencies for your application. This operation can also be done via SSH for convenience.
- Execute Command: Allows you to run a command in your Ruby environment without using SSH or Terminal.
- Command for entering to virtual environment: The command to enter your Ruby virtual environment when working via Terminal or SSH.
- The commands Update, Reset, Restart, and Remove: Respectively allow you to update your application, reset settings to default, restart, and delete the application.
If you need to modify your application or update the Ruby version, click the respective edit buttons to make changes.
To apply changes, click the Update button. To delete the application, click the Remove button at the bottom of the installed application.
Once the application is configured, you can install additional modules directly from the page by clicking the Show link next to modules. Use the text box to search for the module you wish to install.
Click on the module you wish to install, and you will see the available versions.
Select the version you want to install and click the Add button. To complete the installation, click the Update button.