[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby, fastcgi and lighttpd

Piett H.

5/27/2007 1:21:00 AM

hi,

i want to use lighttpd + ruby + fastcgi to build web apps. Not the
entire RoR framework (for the present projects)

I can't seem to find a procedure to build this, in terms of system
configuration, namely lighttpd's fastcgi configuration module:
10-fastcgi.conf

thanks in advance,
--
pedro mg
Debian Etch 4.0
ruby 1.8.5 (2006-08-25)

1 Answer

James Tucker

5/27/2007 6:05:00 AM

0

You might want to take a look at rails fcgi_handler.rb for some inspiration.

which works with the following style of configuration inside a host block:

fastcgi.server = ( ".fcgi" =>
( "localhost" =>
(
"socket" => "path_to_your.socket",
"bin-path" => "path_to_your/public/dispatch.fcgi",
"bin-environment" => ( "RAILS_ENV" => "production" ),
"min-procs" => 5,
"max-procs" => 5,
"idle-timeout" => 60
)
)
)

Hope this helps.


pedro mg wrote:
> hi,
>
> i want to use lighttpd + ruby + fastcgi to build web apps. Not the
> entire RoR framework (for the present projects)
>
> I can't seem to find a procedure to build this, in terms of system
> configuration, namely lighttpd's fastcgi configuration module:
> 10-fastcgi.conf
>
> thanks in advance,