# Check Development vs. Production

**URL:** <https://www.ruby-forum.com/t/check-development-vs-production/98041>\
**Category:** Ruby\
**Created:** [July 12, 2006, 4:56am UTC](https://www.ruby-forum.com/t/check-development-vs-production/98041 "2006-07-12T04:56:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blazer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@Blazer](https://www.ruby-forum.com/u/Blazer)\
**Post date:** [July 12, 2006, 4:56am UTC](https://www.ruby-forum.com/t/check-development-vs-production/98041/1 "2006-07-12T04:56:05Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Blazer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@Blazer](https://www.ruby-forum.com/u/Blazer)\
**Post date:** [July 12, 2006, 6:53am UTC](https://www.ruby-forum.com/t/check-development-vs-production/98041/2 "2006-07-12T06:53:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Blazer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@Blazer](https://www.ruby-forum.com/u/Blazer)\
**Post date:** [July 12, 2006, 8:23am UTC](https://www.ruby-forum.com/t/check-development-vs-production/98041/3 "2006-07-12T08:23:19Z")

</div>

On 7/11/06, Blazer [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](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
