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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Setup for Rails via Litespeed Ruby LSAPI

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2006, 11:35 AM
Justin Justin is offline
New Member
 
Join Date: Apr 2006
Posts: 4
Default Setup for Rails via Litespeed Ruby LSAPI

While there is fairly good documentation of the process for running Rails on Litespeed via FastCGI, I'm having trouble finding a step-by-step description of the configuration process for deploying Rails apps via the Litespeed Ruby LSAPI.

Steps done so far:
Code:
$ cd ruby-lsapi-1.0
$ ruby setup.rb config
$ ruby setup.rb setup
$ sudo ruby setup.rb install

- Copy dispatch.lsapi to Rails app's public/ directory
- Change shebang line to reference /opt/local/bin/ruby
- Change rewrite rule in public/.htaccess as described in Ruby LSAPI README
- Add same rewrite rule in Litespeed admin console (just in case)
- Server Configuration > External Apps > Add, Type: LSAPI APP
I tried to configure the many LSAPI app options, but aside from adding an extra environment variable LSAPI_CHILDREN=n to match the "Max Conns" value, it's not clear to me what the other option values should be set to. When I restart Litespeed and test the Rails app in the browser, a dialog appears to download dispatch.lsapi as a binary file.

I'm sure I'm missing something relatively simple, but with no documentation of the process to go by, I'm flummoxed. As mentioned above, a detailed, step-by-step walkthrough for creating a new Rails virtual host in Litespeed and getting it working via the Ruby LSAPI would be most greatly appreciated. I'm happy to volunteer myself as the lab rat!

With sincere gratitude,

Justin
Reply With Quote
  #2  
Old 04-28-2006, 11:54 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Sorry for lacking a step by step tutorial, we will add one later.

I think the step you missing is to configure a mount point of the LSAPI dispatcher. You can do that by either

To add a LSAPI context with URI: /dispatch.lsapi, using the LSAPI as handler.

Or

To add a script handler for suffix "lsapi", using the LSAPI as handler.

I personally prefer the first approach. The Rails app should be ready to roll. :-)
Reply With Quote
  #3  
Old 12-08-2007, 07:19 PM
amaltemara amaltemara is offline
Member
 
Join Date: Dec 2007
Posts: 29
Default step-by-step

See:
http://www.litespeedtech.com/support...s=ruby%20lsapi
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to use litespeed load balancer for balancing lsapi technix Ruby/Rails 3 07-06-2007 08:28 PM
Is the LiteSpeed Ruby LSAPI my best choice? travisbell Ruby/Rails 13 06-06-2007 10:23 AM
Ruby LSAPI 2.4 and PHP LSAPI 3.1 released mistwang News 0 04-24-2007 03:35 PM
LSAPI Ruby v1.12, PHP v2.4 Released mistwang News 0 01-10-2007 01:18 PM
Ruby Setup - LSAPI Xorlev Ruby/Rails 10 05-07-2006 02:51 PM


All times are GMT -7. The time now is 12:04 AM.



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