Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Ruby on Rails
PostPosted: Fri Mar 06, 2009 6:51 pm 
Offline
Junior Member

Joined: Sun Mar 01, 2009 10:48 am
Posts: 20
I'm just wondering what is the best way to run ROR on my server.

Shall I use Apache with passenger, or should I be using Nginx/Lighthttp with mongrel and fast cgi?

I keep hearing that apache uses too much memory, but fast cgi makes apps run slowly.

I'm just starting out with ROR, and I don't know a lot about setting it up. I want to make some headway this weekend. If anyone could advise me then I'd be very grateful.


Top
   
 Post subject:
PostPosted: Fri Mar 06, 2009 9:07 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
This is just me, but personally I use Apache + Passenger. It's really easy and just works, plus it allows me to serve both Rails and PHP apps painlessly.


Top
   
 Post subject:
PostPosted: Fri Mar 06, 2009 9:37 pm 
Offline
Junior Member

Joined: Sun Mar 01, 2009 10:48 am
Posts: 20
Have you got a 360 account or higher?


Top
   
 Post subject:
PostPosted: Fri Mar 06, 2009 11:05 pm 
Offline
Junior Member
User avatar

Joined: Mon Mar 02, 2009 10:45 pm
Posts: 38
I just got a Linode 360 and went with Apache first. It was a nightmare on memory usage, and actually crashed my box twice. I think I could have optimized that to work eventually, but...

Then I tried lighttpd and it was about a billion times easier to set up. I can't imagine ever going back to Apache. Lighttpd is easier to set up plus it uses barely any memory. I'm sitting at over 180MB of free memory consistently, even under my heaviest load.

.


Top
   
 Post subject:
PostPosted: Sat Mar 07, 2009 8:15 pm 
Offline
Newbie
User avatar

Joined: Tue Aug 19, 2008 11:49 pm
Posts: 3
Apache with mpm worker and passenger.


Top
   
 Post subject:
PostPosted: Mon Mar 09, 2009 5:05 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
I don't have a Linode currently (going to get mine on Friday) but I have another VPS with this setup and everything is working perfectly. If you optimize and tune Apache you should have no problems. Just as waltercruz says, Apache + mpm worker seems to be the best.


Top
   
 Post subject: passenger
PostPosted: Sat Mar 21, 2009 1:42 pm 
Offline
Senior Newbie

Joined: Sat Jan 17, 2009 6:35 pm
Posts: 11
I'm quite happy with passenger--once I installed Ruby with MBARI patches [1.8.7] so that it didn't leak as much memory :)
Apache you might be able to tune [have it use MPM, not as many workers]


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group