cPanel - Ruby on Rails

This interface of cPanel allows you to create and install a Ruby on Rails application. If you have a Ruby on Rails application developed, you can deploy it to your server using this interface.

To create a Ruby on Rails Application, follow these steps −

Step 1 − Click Ruby on Rails found under the Software Section of cPanel Home.

Ruby Rails

Step 2 − In the Ruby on Rails Interface, you will find Create Ruby on Rails Application.

Ruby On Rails

Step 3 − Provide the name of your application in App Name.

Step 4 − Provide a Path for your application in your Home Directory.

Step 5 − Choose the appropriate environment for your Application. Select Load on Boot, if you want your application to automatically start, whenever your server starts.

Step 6 − Click Create to create a new Ruby on Rails Application.

To delete a Ruby on Rails application, you can scroll down to the list of currently Available Ruby on Rails applications.

Ruby Applications

Click the Delete link from the Action button to delete the application. You can also change the preferences of the application from this interface.

Create a Rewrite

Ruby on Rails applications running on a different port rather than the incoming traffic. People will access port number 80 or 443, which is for HTTP and HTTPS, and hence you will need to redirect people from that port to which the Ruby on Rails application is running. To create a rewrite, scroll down on Ruby on Rails Interface to Create a Rewrite. Click Create Rewrite link next to the app name of which you wish to create the rewrite.

Create Rewrite

It will take you to the following interface.

Create URL

Choose a domain from the dropdown and if you want, you can specify a URL for that too in the URL text box.

Click Save to create a rewrite.

Did you find this article useful?