How to run a Rails project in different environments in NetBeans

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

How to run a Rails project in different environments in NetBeans

by bruparel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have inherited a Rails application that has multiple custom environments defined in addition to standard development, test, and production.  For example, it has two development environments defined.  One for the US site (which defaults to the standard development environment) and a custom UK development for the UK version of the site.  Additionally, it has staging environments defined to test the site in isolation and in near production conditions.  Currently, I am cutting and pasting from the desired environments into the default development environment to simulate how it runs on UK development, US/UK staging etc.
Is there a better way to achieve this in NetBeans?  I have tried choosing the Properties menu option when right clicking on my project.  The Rails environment drop-down shows the standard three development, test, and production choices which is not very helpful.
Bharat

Re: How to run a Rails project in different environments in NetBeans

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you try typing in the value?

bruparel wrote:

> I have inherited a Rails application that has multiple custom environments
> defined in addition to standard development, test, and production.  For
> example, it has two development environments defined.  One for the US site
> (which defaults to the standard development environment) and a custom UK
> development for the UK version of the site.  Additionally, it has staging
> environments defined to test the site in isolation and in near production
> conditions.  Currently, I am cutting and pasting from the desired
> environments into the default development environment to simulate how it
> runs on UK development, US/UK staging etc.
> Is there a better way to achieve this in NetBeans?  I have tried choosing
> the Properties menu option when right clicking on my project.  The Rails
> environment drop-down shows the standard three development, test, and
> production choices which is not very helpful.
> Bharat
>  

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


Re: How to run a Rails project in different environments in NetBeans

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bharat,

bruparel wrote:

> I have inherited a Rails application that has multiple custom environments
> defined in addition to standard development, test, and production.  For
> example, it has two development environments defined.  One for the US site
> (which defaults to the standard development environment) and a custom UK
> development for the UK version of the site.  Additionally, it has staging
> environments defined to test the site in isolation and in near production
> conditions.  Currently, I am cutting and pasting from the desired
> environments into the default development environment to simulate how it
> runs on UK development, US/UK staging etc.
> Is there a better way to achieve this in NetBeans?  I have tried choosing
> the Properties menu option when right clicking on my project.  The Rails
> environment drop-down shows the standard three development, test, and
> production choices which is not very helpful.
>  

The combo box is actually supposed to show all the environments found in
the config/environments folder. Where do you have your environments
defined? Also, as Chris wrote already, you should be able to just type
in any environment name.

Erno
> Bharat
>  


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


Re: How to run a Rails project in different environments in NetBeans

by bruparel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Gentlemen,
You both are right.  I just did not think of trying it.  I typed in the "uk_development" in drop-down combo box and that is all there is to it.  By the way, this is on Netbeans 6.1 running on Ubuntu 7.10.  The evnironments are defined in config/environments directory.
So it seems that you just have to "remind" Netbeans of the environments defined in that directory if you have more than the standard definitions.
Thanks and regards,
Bharat