Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Check Development vs. Production

Reply
Thread Tools

Check Development vs. Production

 
 
Blazer
Guest
Posts: n/a
 
      07-12-2006
Is there a way to determine (global variable) to determine whether I'm
running rails in development or production within an application?

Thanks in advance ...

DC - Any day above ground is a good day!
 
Reply With Quote
 
 
 
 
fg
Guest
Posts: n/a
 
      07-12-2006

Blazer wrote:
> Is there a way to determine (global variable) to determine whether I'm
> running rails in development or production within an application?
>
> Thanks in advance ...
>
> DC - Any day above ground is a good day!


Can check ENV['RAILS_ENV'] which contains either 'development', 'test',
'production'.

Francois

 
Reply With Quote
 
 
 
 
Austin Ziegler
Guest
Posts: n/a
 
      07-12-2006
On 7/11/06, Blazer <> wrote:
> Is there a way to determine (global variable) to determine whether I'm
> running rails in development or production within an application?


This is better answered on the Rails mailing list, joinable from
<http://lists.rubyonrails.org/mailman/listinfo/rails>. The mailing
list you posted to is about Ruby programming in general, which means
that only *some* of the people on this list care about Rails issues.
I'm glad you got your answer, but please try to restrict Rails
questions to the Rails list.

-austin
--
Austin Ziegler * * http://www.halostatue.ca/
* * http://www.halostatue.ca/feed/
*

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different web.config's for development and production Klaus Jensen ASP .Net 7 05-21-2007 12:07 AM
How best to determine if running in a development, test, or production mode? David ASP .Net 3 07-24-2005 03:45 PM
Development vs. Production Jerry Camel ASP .Net 2 04-26-2005 05:27 PM
Frameset Refresh - works in development, not production Norman ASP .Net 0 02-17-2005 06:51 PM
Development/Production Box .Net =?Utf-8?B?UGF0cmljay5PLklnZQ==?= ASP .Net 2 11-09-2004 12:26 AM



Advertisments