Forum: Ruby on Rails In fastcgi the environment.rb isn't loaded

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
31facd7b371077faa0092f38a521608e?d=identicon&s=25 Maurice Zeijen (smies)
on 2005-11-15 00:02
Hi People,

I am working on Windows XP, with Apache and FastCGI. I am having some
problems because it looks like that the environment.rb isn't loaded when
using FastCGI. I can put anything in it, good things or things that
should generate errors. I restart the server and then nothing happens.
Everything just works like the parser never saw what was in the
environment.rb file. When I use CGI (or WebRick) instead of FastCGI, the
server does find the errors.

I came across this problem because Rails does some other strange thing
when working in FastCGI mode. When I set the static property
'ActionWebService::API::Base.allow_active_record_expects = true;'  it
also looks like the parser never saw this piece of code. I still can't
use active records in my webservice :expects. Don't ask me why I want to
set ActionWebService::API::Base.allow_active_record_expects to true, it
just should work. It only works in Webrick and CGI.

Do you have the same problems?

This topic is locked and can not be replied to.