LiteSpeed Web Server 2.2 includes Rails Support 20
LiteSpeed offers a Standard Edition which is free for private and commercial use, the only restriction being that your site can't serve content related to pornography, warez or illegal activities. This is an odd restriction, but I guess it's cool that they stand by their principles.
To keep things DRY, I won't repeat LiteSpeeds feature set here. Instead, I'll "show" you why I choose LiteSpeed and why I think you should give it a test drive as well. I've put together two screencasts for your viewing pleasure. The first will demonstrate just how easy it is to get up and running with LiteSpeed. From installing the server to a fully deployed Rails application in under 4 minutes. Live and uncut. It moves along pretty fast, but I felt it was a good demonstration of the effort the LiteSpeed developers have put into supporting Ruby on Rails. In the second screencast, we'll take a more in-depth look at some of the cool features of LiteSpeed Web Server. Hope you enjoy them, I had fun making them.
Up and Running with Rails in Under 4 Minutes - 3:25 runtime - Flash
LiteSpeed In-Depth - 21:35 runtime - Flash
UPDATE: The screencasts show that you have to copy dispatch.lsapi into your public directory, with the 2.2 release, this requirement is lifted. The ruby-lsapi gem still needs to be installed, but LiteSpeed will handle the dispatching to Rails through their LSAPI automatically.UPDATE: When running the script to restart LiteSpeed, make sure you run it as a user with root priviledges. So for Mac users: sudo lswsctrl restart
Thanks so much for posting it. Have you had any luck running applications using frozen edge rails versions? I'm trying to get Beast to work with litespeed, and though I can serve beast from webrick or lighty, when I try to get the app served through litespeed it just sits there and times out.
I have litespeed serving other rails apps from two separate document-roots on two different ip/port combos.
so I'm guessing there may be a trick to run the frozen edge rails apps with litespeed? assumption being that running an app with rails frozen (edge in this case) in the vendor dir, throws litespeed a curveball or sumpin'
any comments on that would be most welcome!
Thanks, Amr
Thanks Bob, good to know, one less wrong tree for me to bark up :) . I did do the DEBUG mode thing, but didn't seem to find anything different as compared to the other VHOST which is serving the other rails app fine. Can't thank you enough for this screencast! really, this is extremely helpful, many many thanks.
BTW, I saw you are running quite a few virtual hosts on a single LSWS instance. Do you have a writeup on that by chance? I mean running multiple rails apps under the same litespeed server (kind of what you have already setup..) I think I'm going about it in a very convoluted way (different listener on each ip with different ports and then the different rails app on that doc-root.. its really weird.. I think you'r setup is simpler because I only saw one listener on port 80)
sorry if this question is too n00bish, and thanks for the screencast again!
Bob, thanks for the pointer, I will check that out. I did have the 2.2 and lsapi installed but I forgot one more thing, I had the rails app running under "development" while my virtual host was configured to look at "production" in the rails context tab. When I aligned those two by changing the value in database.yml to "production:" , it worked like a charm! Many Thanks!!! :))
Re: the VHosts all assigned to 80, are you giving each an "A" record on the DNS side? What I mean is, lets say I have tingoo.com, but I want to run forum.tingoo.com on 80 but want it to point to a different doc-root (RAILS_HOME) as it is a separate app, so basically I do still have to create an A record for each of the subdomain like x.tingoo.com, y.tingoo.com etc. then have the VHOST point to x.tingoo.com and then have 80 listener bound to this newly added VHOST. do I have this understood correctly?
Please forgive me for hijacking your comments thread like this.