Forum: Ruby on Rails Can't tell Rails to run in production via my Apache config

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fa89d4d97fa43a8975800ea386d85f36?d=identicon&s=25 Mike Zornek (Guest)
on 2005-12-14 04:31
(Received via mailing list)
I've been wrestling with this problem the last few days and can't see
what
I'm doing wrong. I have a rails app and when I try to run it on my
Apache+FCGI set up I can never get it to run in production mode by
setting
that flag in the `httpd.conf` file.

<IfModule mod_fastcgi.c>
  FastCgiIpcDir /tmp/fcgi_ipc
  FastCgiServer /webserver/cbwebsite/releases/rel44/public/dispatch.fcgi
\
    -initial-env RAILS_ENV=production \
    -processes 1 -idle-timeout 120
</IfModule>

If I manually uncomment the line in the `environment.rb` file and tell
it to
run in production mode explicitly it does work, but I want to do this
from
the Apache log for obvious reasons.

Similarly, I can run the app under WEBrick in production mode by passing
it
the flag. Why can't I do this with Apache+FCGI?

Any help/suggestions welcome. Thanks.

~ Mike
--
http://MikeZornek.com
This topic is locked and can not be replied to.