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

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.
Mike Zornek (Guest)
on 2005-12-14 05:31
(Received via mailing list)
I've been wrestling with this problem the last few days and can't see
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
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

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
the Apache log for obvious reasons.

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

Any help/suggestions welcome. Thanks.

~ Mike
This topic is locked and can not be replied to.