[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Check Development vs. Production

Blazer

7/12/2006 2:53:00 AM

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!
2 Answers

Francois GORET

7/12/2006 4:47:00 AM

0


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

Austin Ziegler

7/12/2006 6:22:00 AM

0

On 7/11/06, Blazer <blazer@personal.net> 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.... 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 * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca