LiveZilla Live Help
 


Go Back   Chime Host - Web Hosting Forum > Web Hosting Section > Knowledge Base
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-23-2007, 01:09 AM
Administrator
 
Join Date: Sep 2005
John has disabled reputation
Default How to run Ruby on Rails?

If you have an existing application, Change the line in your Rails application’s public/dispatch.fcgi.

Change
Quote:
require 'fcgi'
To

Quote:
require 'fcgi'
require 'rubygems'
require_gem 'fcgi'

Make sure Apache can find dispatch.fcgi

Now edit your app’s public/.htaccess and change/add the following lines to make sure that the Rails app is using FastCGI and that it knows that the app is living in a subdirectory.

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

Code:
RewriteBase /testapp
RewriteRule ^(.*)$ dispatch.fcgi?$1 [QSA,L]

Make sure that dispatch.fcgi is executable:

Code:
$ chmod 755 public/dispatch.fcgi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can anyone recommend a good site to register a Domain? tarra SEO - Search Engine Optimization 1 02-15-2010 12:45 AM
Having problems with HTML tables? ieric23 HTML/CSS/DHTML 1 01-24-2010 05:38 AM
What is the geometry postulate that goes with this pic? uhyeah321 PHP 1 01-21-2010 11:39 PM
swollen tonsils? difficulty swallowing anything? kErOro<3 Health Section 0 12-31-2009 04:31 AM
iphone 3gs vs. HTC HD? Moon *( Prince HTC Mobile 0 12-24-2009 12:54 PM


All times are GMT +1. The time now is 12:47 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ChimeHost, a Profuse Solutions LLC company