[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

ruby programming for the web

Piett H.

5/6/2007 11:56:00 PM

Hi,

(i do not pretend to use RoR)
For a web app using a MySQL or Postgres db (and some YAML for static
cached data), hosted on a Debian machine, can i have:

- lighttpd
- fastcgi
- eruby

eruby is my question. Can i use it with lighttpd ?
The first web app is a specific content manager for the client company
needs. The need for eruby is just embed code in html. Even so, can i use
cgi's for session managment, etc ?

thank you,
Piett H.
2 Answers

Piett H.

5/7/2007 1:52:00 AM

0

Piett H. wrote:
> eruby is my question. Can i use it with lighttpd ?

cgi.assign = ( ".rhtml" => "/usr/local/bin/eruby" )

--
pedro mg

Brian Candler

5/7/2007 7:58:00 AM

0

On Mon, May 07, 2007 at 11:25:05AM +0900, pedro mg wrote:
> Piett H. wrote:
> > eruby is my question. Can i use it with lighttpd ?
>
> cgi.assign = ( ".rhtml" => "/usr/local/bin/eruby" )

Although I think that each page hit will spawn off a completely new Ruby
interpreter from scratch. This shouldn't be a problem if your application is
only lightly used. Otherwise, you might want to consider something like
fastcgi (see ruby-fcgi in rubyforge). I'm pretty sure that lighttpd can talk
to fastcgi processes.

Alternatively, write your application as a standalone HTTP app using webrick
or mongrel, and then use lighttpd to proxy *.rhtml to the app.