Google Groups Home
Help | Sign in
Errors in production environment
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Sam Pei  
View profile
 More options May 6, 2:45 pm
From: Sam Pei <ruby-forum-incom...@andreas-s.net>
Date: Tue, 6 May 2008 20:45:29 +0200
Local: Tues, May 6 2008 2:45 pm
Subject: Errors in production environment
Hi all.

I switched to production environment for my rails app.

My production environment is an apache2+mongrel.

All worked fine, but I have a problem: when an error is generated all
debug infos come out, as like as in development environment occurs.

What can be the problem?

Note that:

- in my mongrel_cluster yml config file there is the line: environment:
production
- the app really runs in the production environment, because it reads
data from production DB
- I tried to set RAILS_ENV=production in environmet.rb, but it did not
work
- I also tried to set config.log_level = :info in environments.rb, but
it did not work
- inside the rails app the variable RAILS_ENV is set to production
- if I launch ruby script/server -e production all works fine and I
don't see debug info on errors

The strange thing is that it really runs in production environment but
the error pages have debug info. Besides this does not occur if I launch
mongrel_rails from command line but only with mongrel clusters

Thanks to all
--
Posted via http://www.ruby-forum.com/.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Raul  
View profile
 More options May 7, 12:11 pm
From: Raul <roll...@gmail.com>
Date: Wed, 7 May 2008 09:11:37 -0700
Local: Wed, May 7 2008 12:11 pm
Subject: Re: [Rails-deploy] Errors in production environment
The basics first I suppose.  Did you restart your mongrels after updating
the environment.rb? Also, are you sure the log level is malfunctioning?
Maybe you want to set it to another level like :error or :fatal.  Maybe try
one of those out first and see if it's closer to what you are looking for.

Raul


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google