Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old December 31st, 2006, 02:35 AM
misterdanny's Avatar
misterdanny misterdanny is offline
Null Pointer Exception
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Mar 2006
Location: america
Posts: 1,932 misterdanny User rank is First Lieutenant (10000 - 20000 Reputation Level)misterdanny User rank is First Lieutenant (10000 - 20000 Reputation Level)misterdanny User rank is First Lieutenant (10000 - 20000 Reputation Level)misterdanny User rank is First Lieutenant (10000 - 20000 Reputation Level)misterdanny User rank is First Lieutenant (10000 - 20000 Reputation Level)misterdanny User rank is First Lieutenant (10000 - 20000 Reputation Level)misterdanny User rank is First Lieutenant (10000 - 20000 Reputation Level)misterdanny User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 17 h 53 m 27 sec
Reputation Power: 193
Ruby on rails, finally doing it

i've been following this introductory guide for ruby on rails

http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2

ive been going along nicely i feel like i know what im doing,

I'm just curious about how i can have it integrate with my apache server (which is currently hooked for doing php development)

id like to not have to run 2 servers as it seems kind of funny.

the only issue i could see is ive been following the guide and putting my stuff inside c:\rails

all of my php stuff is inside c:\www

and c:\www is my web root directory, i guess i need to create a different port on apache that goes to the directory root that the ruby on rails webserver is going to (which im not very sure where it goes actually)

i dont know if this is more of an apache question or what

edit:

i nosed around and found this

http://api.rubyonrails.org/
Quote:
Rails uses the built-in web server in Ruby called WEBrick by default, so you don’t have to install or configure anything to play around.

If you have lighttpd installed, though, it’ll be used instead when running script/server. It’s considerably faster than WEBrick and suited for production use, but requires additional installation and currently only works well on OS X/Unix (Windows users are encouraged to start with WEBrick). We recommend version 1.4.11 and higher. You can download it from www.lighttpd.net.

If you want something that’s halfway between WEBrick and lighttpd, we heartily recommend Mongrel. It’s a Ruby-based web server with a C-component (so it requires compilation) that also works very well with Windows. See more at mongrel.rubyforge.org/.

But of course its also possible to run Rails with the premiere open source web server Apache. To get decent performance, though, you’ll need to install FastCGI. For Apache 1.3, you want to use mod_fastcgi. For Apache 2.0+, you want to use mod_fcgid.

See wiki.rubyonrails.com/rails/pages/FastCGI for more information on FastCGI.


--
the tone of that paragraph is that it wont run too cool on apache and i should use lighthttpd.

will fastcgi help too much?

the final server if i do develope a pretty cool ruby thing will be on a 256 megabyte VPS.

any recomendations as far as that?

Last edited by misterdanny : December 31st, 2006 at 03:00 AM.

Reply With Quote
  #2  
Old January 5th, 2007, 02:39 AM
xmitchx's Avatar
xmitchx xmitchx is offline
I do PHP. The drug.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Southern California, USA
Posts: 231 xmitchx User rank is Private First Class (20 - 50 Reputation Level)xmitchx User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 7 h 46 m 21 sec
Reputation Power: 5
FastCGI with Apache works fine if you want to use Apache. I am on dreamhost currently and it runs well. I've never setup FCGI w/ Apache though so I can't help you there, sorry.

I just wanted to assure you fcgi with apache is fine.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Ruby on rails, finally doing it


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway