Is Rails Environment in Project Props applicable to GlassFish

View: New views
3 Messages — Rating Filter:   Alert me  

Is Rails Environment in Project Props applicable to GlassFish

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I just filed a bug that setting the Rails Environment setting in Project
Properties for Rails apps does not seem to affect running the app in GF.
But I am wondering, should it? Perhaps this setting is for WEBrick and
Mongrel only?

http://www.netbeans.org/issues/show_bug.cgi?id=150002

Let me know,

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Is Rails Environment in Project Props applicable to GlassFish

by Peter Williams-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It should be, but I'm not that surprised that it's not (another casualty
of me being unexpectedly away mid September).

I've been looking at this and I have this curiosity --

If I set (in my rails project setting) the environment to be
"production", executing "rake db:migrate" inside the IDE still creates
tables in the development database.  From the command line, I can get
this task to work only by setting RAILS_ENV to production.  How should I
have expected this to work?

-Peter


Chris Kutler wrote:

> Hi,
>
> I just filed a bug that setting the Rails Environment setting in
> Project Properties for Rails apps does not seem to affect running the
> app in GF. But I am wondering, should it? Perhaps this setting is for
> WEBrick and Mongrel only?
>
> http://www.netbeans.org/issues/show_bug.cgi?id=150002
>
> Let me know,
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Is Rails Environment in Project Props applicable to GlassFish

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Peter,

Peter Williams wrote:

> It should be, but I'm not that surprised that it's not (another
> casualty of me being unexpectedly away mid September).
>
> I've been looking at this and I have this curiosity --
>
> If I set (in my rails project setting) the environment to be
> "production", executing "rake db:migrate" inside the IDE still creates
> tables in the development database.  From the command line, I can get
> this task to work only by setting RAILS_ENV to production.  How should
> I have expected this to work?

Please see http://www.netbeans.org/issues/show_bug.cgi?id=134372

For now you need to pass the env variable as a parameter to the task in
the rake runner.

Erno


>
> -Peter
>
>
> Chris Kutler wrote:
>> Hi,
>>
>> I just filed a bug that setting the Rails Environment setting in
>> Project Properties for Rails apps does not seem to affect running the
>> app in GF. But I am wondering, should it? Perhaps this setting is for
>> WEBrick and Mongrel only?
>>
>> http://www.netbeans.org/issues/show_bug.cgi?id=150002
>>
>> Let me know,
>>
>> Chris
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@...
>> For additional commands, e-mail: dev-help@...
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...