Hey Richard,

2009/1/7 Richard Dale <[email protected]>:
> I added those lines to the config files, built and installed Wt and Wt::Ruby
> into /usr instead of /usr/local and now it all works, both C++ and Ruby with
> FastCGC! I renamed the hello.rb example hello_ruby.wt and added a line for
> it in the fastcgi.conf file. At the top I put '#!/usr/bin/ruby' and made it
> executable, and changed require 'wt' to require 'wtfcgi'.
>
> So that means that as far as Apache2 and FastCGI are concerned a Wt::Ruby
> application in a '*.wt' file is identical to a Wt C++ one. It should be
> possible to configure Apache to use '*.rb' files, but maybe it is a  good
> idea to give the top level a different extension to normal ruby scripts (or
> '*.wtrb' or '*.wtruby' perhaps).
>
> Getting fastcgi working with Wt::Ruby is really the last major milestone
> before a first release - I just need to do a few more docs to explain it all
> now.

Congratulations!

I would not worry that much about the extensions: while convenient to
configure apache2 and FastCGI to automatically handle particular URLs,
in a production environment you should probably manually map the
application to a URL that does not expose the technology (for URL
stability).

We had a look at the ruby examples: although we have no ruby
experience whatsoever, I was pleasantly surprised by the clarity.

The promising state of Wt::Ruby also a new question: is it
trivial/possible/hard or virtually impossible to integrate this with
the active record layer of Ruby on Rails or a similar database layer ?

Regards,
koen

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to