On 3 December 2010 18:34, John Merlino <[email protected]> wrote:
>> Are you sure your server is actually running in the production
>> environment (RAILS_ENV=production)?
>
>
> I am not sure.
>
> But on server, in:
> /etc/httpd/conf/rails.conf file
>
> I have:
>
> <VirtualHost *:80>
>  DocumentRoot /var/www/apps/human/public
>  <Directory /var/www/apps/human/public>
>  allow from all
>  Options +Indexes
>  </Directory>
>  ServerName www.humandiet.net
>  RailsEnv production
> </VirtualHost>
>
> So this appears to be default by passenger.
>
> In config/environment.rb I have this:
> ENV['RAILS_ENV'] ||= 'production'
>
> And my server has been restarted hundreds of times since those changes
> were made.

When you believe that you are running in production mode is
development.log still getting written to?  Each entry has a time stamp
so it is easy to tell.  If so then either you are actually running in
development mode for some reason or the wrong log is getting written
to.

Another thing you can do to check is in one of your views display the
value of ENV['RAILS_ENV'].

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to