Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   > Hosting Section > Knowledge Base

Reply
 
LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-22-2007, 05:09 PM
John
Status: Offline
Administrator
 
Join Date: Sep 2005
Posts: 438
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
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

LinkBacks (?)
LinkBack to this Thread: http://www.profusehost.net/forum/knowledge-base/10540-how-run-ruby-rails.html
Posted By For Type Date
Ruby on Fastcgi (Apache) - Ruby Forum This thread Refback 01-01-2008 01:49 PM
Nabble - ruby-talk - Ruby on Fastcgi (Apache) This thread Refback 12-30-2007 01:44 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
other ruby framework possibilities? ice_cream Free Web Hosting Support 2 06-28-2008 02:03 AM
Ruby on Rails snoop1990 Free Web Hosting Support 23 01-17-2008 11:43 PM
Ruby on Rails fatlotus Free Web Hosting Support 0 10-24-2007 04:02 PM
How to setup a Rails App? ggraimon Free Web Hosting Support 2 12-09-2006 04:38 AM
Ruby on Rails tobio Free Web Hosting Support 3 08-14-2006 12:38 AM


All times are GMT -7. The time now is 06:01 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79