On Mon, Jan 5, 2009 at 3:12 PM, Koen Deforche <[email protected]> wrote:
> Hey Richard,
>
> 2009/1/5 Richard Dale <[email protected]>:
> >
> >
> > On Mon, Jan 5, 2009 at 11:54 AM, Anthony Buck <[email protected]> wrote:
> >>
> >> lol...
> >>
> >> Here's hoping :) Imagine wt... with GC! heaven. Even better if it
> >> leveraged terracotta for instant & unlimited scaling!
> >
> > I'm working on Ruby bindings for Wt and so they have GC, and you don't
> need
> > to compile your application either. The source is on github:
> >
> > http://github.com/rdale/wtruby
> >
> > It is pretty much ready to release - I just need to understand how to set
> up
> > fastcgi with Wt, and get the Ruby version working the same way.
>
> Congrats for the nice work!
>
> Just out of curiosity, are you using it already for the web-related
> work that prompted you to look for a development-friendly web
> framework?
We (Foton Sistemas Inteligentes) develop custom applications for customers
using mostly Rails. Personally, I find Rails a bit too low level as it
involves a lot of raw HTML coding with ruby embedded in it (ie *.html.erb
sources). Rails also doesn't work well (in my opinion) for developing
applications like gmail which are really 'web page based', but more like
desktop apps. So I thought it would be nice to have an api to develop these
sort of applications in, even if Wt::Ruby might not scale as well with
FastCgi, as Rails does.
>
>
> To setup fastcgi with Wt, you need to build the FastCGI connector
> library (a cmake config option), and link to wtfcgi instead of wthttp.
Yes, for Wt::Ruby there are two different ruby extensions 'wthttp' and
'wtfcgi' and they both have all the Wt:: classes in them. The only
difference is that one is linked againt the wthttp lib and the other linked
against wtfcgi.
So for development you would include one and for production the other.
if ENV['WT_ENV'] == 'production'
require 'wtfcgi'
elsif ENV['WT_ENV'] == 'development'
require 'wthttp'
end
But I don't know anything about how to set up Apache2 to use fast cgi yet.
My install of apache2 has config files named differently from the docs in
Wt. So I haven't actually got the C++ Wt hello world working yet, but I'm
pretty sure that the Ruby one will work too once I do.
-- Richard
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest