Check Development vs. Production

B

Blazer

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!
 
F

fg

Blazer said:
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
 
A

Austin Ziegler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,573
Members
45,046
Latest member
Gavizuho

Latest Threads

Top