LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > Ruby Rack adapter request

Reply
 
Thread Tools Display Modes
  #11  
Old 05-27-2008, 09:19 AM
aemadrid aemadrid is offline
Senior Member
 
Join Date: Aug 2006
Posts: 57
I can attest that it works because I have a small test app running but it surely isn't as easy to deploy like a normal rails app. You basically have to adapt this http://www.litespeedtech.com/support...iki:ruby_rails to make it work for oyur rack script. These days I'm using thin or Ebb for my non-rails projects so I don't have the time for it but the real solution would be to generate a template similar to the Rails template but to deploy Rack scripts. That would actually make more sense and go a long way to make things easier.

AEM

Quote:
Originally Posted by Dru View Post
Sorry to resurrect a slightly old thread but how well was this working for you guys as currently, being a bit green when it comes to the whole rack thing, the only way I've managed to run a merb app on my server is by starting a thin or mongrel instance and then setting up a webserver proxy as an external app in my vhost.

It feels like more of a hack than anything (although it does offer remarkably good performance) so I'd like to be able to serve it via lsapi/rack but after playing around with the configuration used in here and trying numerous other things I've yet to have any success.
Reply With Quote
  #12  
Old 05-27-2008, 01:00 PM
Dru Dru is offline
Member
 
Join Date: Apr 2007
Location: Grimsby, UK
Posts: 16
Thanks for the reply, I might experiment with it a bit. The solution I have currently is fairing quite well , the only thing that's bothering me is that I can't get litespeed to reliably serve the static assets and cached pages in my merb app, doubtless something I'm doing wrong though.
Reply With Quote
  #13  
Old 05-27-2008, 02:35 PM
aemadrid aemadrid is offline
Senior Member
 
Join Date: Aug 2006
Posts: 57
What you need is static contexts for your static assets (/images, /stylesheets, etc).
Reply With Quote
  #14  
Old 06-05-2008, 02:27 PM
ctran73 ctran73 is offline
New Member
 
Join Date: Jun 2008
Posts: 2
Would you mind re-post the instructions step-by-step? It's kind of hard to follow with all the threads going on

Quote:
Originally Posted by zhesto View Post
Rack [ http://rack.rubyforge.org/ ] - provides an minimal interface between webservers supporting Ruby and Ruby frameworks. Almost all recently releazed ruby frameworks (Ramaze, Sinatra etc.) using it. Creating LSAPI adapter for it will enable all of them (and the new onces comming) to run on litespeed.

What need to be done:
1. Rack Litespeed handler - {rack_path}/lib/rack/handler/litespeed.rb - i tryed to patch the CGI handler with:
Code:
def self.run(app, options=nil)
        while LSAPI.accept != nil
          serve app
        end
      end
but for some reason it not worked.

2. {lsws}/fcgi-bin/RackRunner.rb , similar to the RailsRunner.rb one. It will call the Rack::Handler::Litespeed directly or via {project_home}/start.rb

3. EasyRackWithSuEXEC VH Template
Reply With Quote
  #15  
Old 01-24-2009, 10:19 AM
obrie572 obrie572 is offline
New Member
 
Join Date: Nov 2007
Posts: 4
Any chance anyone has step-by-step directions for how to do this on the latest revs of LiteSpeed / Rack? I'm having trouble following the instructions documented earlier in this thread and have been unable to find any other examples.
Reply With Quote
  #16  
Old 04-25-2010, 11:50 PM
fantasydreaming fantasydreaming is offline
Senior Member
 
Join Date: Sep 2006
Posts: 76
Bump! Any tips on this? Rails 3 is coming soon and this tutorial would be nice to have.

Any pros/cons on using rack vs. the default lsapi?
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:47 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.