On 10/1/06, Oliver Baltzer <[EMAIL PROTECTED]> wrote:
> On 01-Oct-2006 03:03 -0400, John Tsombakos was heard to say:
> >
> > SetEnv RAILS_ENV production
> >
> > I tried that, but the app was still in development mode (I could tell
> > because it was using the dev database)
>
> Assuming you are using mod_fastcgi, try to set:
>
> FastCgiConfig -initial-env RAILS_ENV=production
>
> SetEnv happens on a per-request basis, but your Rails process starts in the
> context of Apache not that of a request.


Thanks. I'm actually using fcgid, so I'm not sure where to put the
config. I see instructions to put

 DefaultInitEnv  RAILS_ENV production

in the /etc/apache2/mods-enabled/fcgid.conf file, but I don't want to
enable production mode for all my rails apps. Can I put the
DefaultInitEnv into the .htaccess?

Thanks again.
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to