How to install Ruby on Rails in Linux Dedicated Hosting?

Silicon House Dedicated Servers are powered by free Unlimited cPanel and Unlimited WHM. In Dedicated Server WHM which is having full root access, you can able to install Ruby on Rails and also you can enable Ruby on Rails all of your cpanels. cPanel Interface allows you to create and Install a Ruby on Rails application.


Ruby on Rails is an open source framework for Web Development in Ruby similar to Python and Perl. It allows you to write less code while accomplishing more than many other languages and frameworks. It is designed to make programming web applications easier by making assumptions about what every developer needs to get started.

Kindly refer the below procedure to install Ruby on Rails in WHM:

[1]  Login to WHM as a root
[2]  Click Module Installers under Software section
[3]  Click Manage nearly with Ruby Gem and you will get message as below

We strongly recommend that you only install the legacy Ruby packages if you wish to manage legacy Ruby applications. Would you like to install the legacy Ruby system and continue?

Back

If you want to install Ruby on Rails, Click “install the legacy Ruby system and continue?”

If you dont want to install click “Back”

[4] If you have clicked “install the legacy Ruby system and continue?”, wait for a while the installation will be complete.

To Create a Ruby on Rails Application, follow these steps:

If you have a Ruby on Rails application developed, you can deploy it to your server using cPanel Interface.

[1] Login to your cPanel of the domain.
[2] Click Ruby On Rails under software section
[3] Follow the below steps under Create Ruby on Rails Application

* Provide name of your application in App Name
* Provide a Path for your application in your Home Directory
* Select an appropriate Environment

[4] Select Load on Boot, if you want your application to automatically start, whenever your server starts
[5] Click Create

Now Ruby on Rails Application has been created.

Follow the below procedure to Delete a Ruby on Rails Application:

[1] Login to your cPanel of the domain.
[2] Click Ruby On Rails under software section
[3] You can scroll down and see the list of currently Available Ruby on Rails Application
[4] Click Delete link from Action button which you want to delete and delete the application.

You can also change the preferences of application from this interface.

Follow the below procedure to Rewrite URL to other URL:

Ruby on Rails uses its own server and does not respond on the standard HTTP port number 80, you must specify the port where site visitors can access your Ruby on Rails application (for example, example.com:12001).

[1] Login to your cPanel of the domain.
[2] Click Ruby On Rails under software section
[3] You can scroll down and see Create Rewrite URL
[4] You can specify a URL for that too in the URL text box and Save
[5] Click Save to create a rewrite.

Note : You cannot configure two Ruby applications to respond on the same domain, subdomain, addon domain, or page.

Hope!! This is very helpful to run Ruby on Rails Application under your domain.