How do I deploy a Ruby on Rails environment?

Overview

Ruby on Rails is an open source web application framework for the Ruby programming language. It is often referred to as "Rails" or "RoR". Along with Ruby we've installed RubyGems and Mongrel for a fast and stable Ruby on Rails environment.

Deploying An RoR Environment

Steps

  1. First you will need to login to your control panel and click on the Ruby on Rails icon, to bring up the Ruby on Rails management interface that allows you to setup your Ruby environments. At this point you will need to give your application a name and setup it's path.

    NOTE: You set this path inside of your public_html directory your application's source code and configuration files can be viewable by anyone on the web.
     
  2. Once you have deployed your first environment, we will of course want to turn it on by clicking on the run icon next to the "Application's Name" in the "Manage Ruby on Rail's" interface. If this worked successfully you should seeing "running" under "status" and you should be able to click the URL icon under the Rails Server column and see a page that looks similar to this:

    This page means that the environment is up and running, and for the rest of your Ruby on Rail's application installation you will need to consult the application's installation guide.

If you pay close attention to the URL used for the application, you will see that it has a number like :12001 at the end of it, this is because Ruby on Rails does not use the standard Apache web server, but rather uses it's own called Mongrel. We can change these to be user-friendly. You will need to create a new subdomain or addon domain in cpanel, then click on the create rewrite button next to the rails application name in cPanel, select the desired domain name from the drop down box, and now, whenever you go to this domain it will display the RoR application.

  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

How do I create a Ruby on Rails application?

Overview Below are instructions on how to create a Ruby on Rails test application and writing a...

How do I install a Ruby Gem?

Overview Ruby Gems are are collections of functions that allow you to perform tasks in Ruby. You...