Java and Eclipse plus WT + Hibernate + Terracotta = a dream :)


2009/1/7 Richard Dale <[email protected]>

>
>
> On Mon, Jan 5, 2009 at 7:51 PM, Koen Deforche <[email protected]> wrote:
>
>> This is how my fastcgi.conf file looks like: it simply treates any
>> application that ends with .wt as a FastCGI application:
>>
>> $ cat fastcgi.conf
>> <IfModule mod_fastcgi.c>
>>  AddHandler fastcgi-script .wt
>> #  FastCgiWrapper /usr/lib/apache2/suexec2
>>  FastCgiIpcDir /var/lib/apache2/fastcgi
>> #  FastCgiConfig -maxClassProcesses 1
>> </IfModule>
>>
>> And in /etc/apache2/sites-available, add for example (great for
>> testing on a local machine, probably foolish for producton), assuming
>> /var/www is DocumentRoot:
>>
>> <Directory /var/www/>
>>                Options Indexes FollowSymLinks MultiViews ExecCGI
>>                AllowOverride None
>>                Order allow,deny
>>                allow from all
>>                # This directive allows us to have apache2's default start
>> page
>>                # in /apache2-default/, but still have / go to the right
>> place
>>                #RedirectMatch ^/$ /apache2-default/
>> </Directory>
>>
>
> 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.
>
> -- Richard
>
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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