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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > How does one configure a rack enabled app in litespeed?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2008, 08:30 AM
Dru Dru is offline
Member
 
Join Date: Apr 2007
Location: Grimsby, UK
Posts: 16
Default How does one configure a rack enabled app in litespeed?

This has been bugging me for a while now and it's finally gotten to the point where I can't ignore it since I'm developing a rails app on edge rails which has recently ditched the cgi interface in favour of rack.

I understand that rack already has support for litespeed but how do I actually configure litespeed to make the app work?

Any post/guide on doing this would be most helpful.
Reply With Quote
  #2  
Old 12-11-2008, 09:03 AM
Dru Dru is offline
Member
 
Join Date: Apr 2007
Location: Grimsby, UK
Posts: 16
Actually it seems there's still a cgi wrapper around rack (see this commit) for backward compatibility but having done a quick test deployment it doesn't seem to be working.

Perhaps the lsapi could be modified to work with this, assuming the problem is actually the fault of lsapi?
Reply With Quote
  #3  
Old 12-11-2008, 09:37 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I am not that familiar with rack.

For the lobster example comes with the rack package, you need to change the handler from WEBrick to LSWS in protectedlobster.rb

Code:
Rack::Handler::LSWS.run pretty_protected_lobster
Then add an external application to LSWS and assign proper script handler and/or context handler.

You can contact Adrian Madrid at our forum, he contribute the LSWS rack handler.
Reply With Quote
  #4  
Old 12-11-2008, 10:27 AM
Dru Dru is offline
Member
 
Join Date: Apr 2007
Location: Grimsby, UK
Posts: 16
I'll have to give it a go later, I'm not optimistic I'll get it working though as I've had little luck in any of my previous attempts.

Hopefully this can be simplified by the time rails 2.3 is out, which I gather could potentially be fairly soon given the rate development is going at currently.
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 09:39 AM.



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