ruby programming for the web

P

Piett H.

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.
 
B

Brian Candler

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,241
Messages
2,571,223
Members
47,861
Latest member
ACOAlphons

Latest Threads

Top