Halaman Utama > Knowledgebase > General > Ruby On Rails Support


Ruby On Rails Support




Dear Clients,

We are happy to announce that Hostgator servers now support Ruby on Rails. This applies for all shared and reseller servers. The following is a brief overview on how you can use RoR with our servers.

Update Version Report:
Ruby Version : ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]
Gem Version : 1.0.1
Rails Version : Rails 2.0.2

Our CTO, David Collins and myself have selected the following Gems to be preinstalled with the Ruby installations. Custom gems are avaliable on a per request basis. If you need an additional gem installed, please create a support ticket.

actionmailer
Service layer for easy email delivery and testing.

actionpack
Web-flow and rendering framework putting the VC in MVC.

actionwebservice
Web service support for Action Pack.

activerecord
Implements the ActiveRecord pattern for ORM.

activesupport
Support and utility classes used by the Rails framework.

BlueCloth
BlueCloth is a Ruby implementation of Markdown, a text-to-HTML
conversion tool for web writers. Markdown allows you to write using
an easy-to-read, easy-to-write plain text format, then convert it to
structurally valid XHTML (or HTML).

builder
Builders for MarkUp.

daemons
A toolkit to create and control daemons in different ways

feedtools
Parsing, generation, and caching system for xml news feeds.

gem_plugin
A plugin system based only on rubygems that uses dependencies only

gnuplot
Utility library to aid in interacting with gnuplot

htmltools
This is a Ruby library for building trees representing HTML
structure.

mongrel
A small fast HTTP library and server that runs Rails, Camping, and
Nitro apps.

mysql
MySQL/Ruby provides the same functions for Ruby programs that the
MySQL C API provides for C programs.

payment
Payment is used to process credit cards and electronic cash through
merchant accounts.

rails
Web-application framework with template engine, control-flow layer,
and ORM.

rake
Ruby based make-like utility.

sources
This package provides download sources for remote gem installation

tidy
Ruby interface to HTML Tidy Library Project

uuidtools
Generation of UUIDs.

xml-simple
A very simple API for XML processing.

We are offering jailed SSH access on all our servers now. You can get SSH enabled for your account if you want to deploy and test Rails applications rapidly. The procedure to get SSH access is simple. You just need to email support@hostgator.com with your account information and a scanned copy of any photo identification document you have for authentication. We will enable jailed SSH access for you on proper verification of the account information. Following are the steps you can perform to deploy a demo Rail app and test its working on your account.



1. Login to your SSH using your own account.
2. Once logged in make sure you are in your /home/username folder using the “pwd” command.
It should show the output like this :

Code:
            cpaneluser@server [~]# pwd
/home/cpaneluser

3. Then run the following commands to generate a demo rail app and its controller.

Code:
            cpaneluser@server [~]# rails /home/cpaneluser/demoapp
cpaneluser@server [~]# cd demoapp
cpaneluser@server [~]# ruby script/generate controller test

4. Now create a symlink in public_html so that the app is viewable via the web.

Code:
            cpaneluser@server [~]# cd ../public_html
cpaneluser@server [~]# ln –s ../demoapp/public rails

5. Before you test the Rails page, there is one more modification you need to make.

Code:
            cpaneluser@server [~]# cd ../demoapp/public
cpaneluser@server [~]# pico .htaccess

Locate the line where it has the code like below :

Code:
             RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

Change that code to :

Code:
             RewriteRule ^(.*)$ dispatch.cgi [QSA,L]

And save the file.

You can then visit http://yourdomain.com/rails/ and you should see a “Welcome Aboard” page which confirms successful working of your rail app. You can deploy any other standard Rail applications as well. Most of them should work well with the preinstalled Gems we have. We have also enabled subversion (SVN) support on all of our servers which would facilitate fetching and installation of ruby scripts. If you have any questions/issues, please email us.



Apakah Jawaban ini membantu?

Tambahkan ke Favorit Tambahkan ke Favorit    Cetak Artikel Ini Cetak Artikel Ini

Baca Juga
Can I host friends? (Dilihat: 208)
PHP memory limit error (Dilihat: 233)

Powered by WHMCompleteSolution