FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to run a Rails project in different environments in NetBeans

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
bruparel
Posted via mailing list.





PostPosted: Tue Sep 02, 2008 8:36 pm    Post subject: How to run a Rails project in different environments in NetBeans Reply with quote

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
--
View this message in context: http://www.nabble.com/How-to-run-a-Rails-project-in-different-environments-in-NetBeans-tp19277866p19277866.html
Sent from the NetBeans Ruby - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
Chris Kutler
Posted via mailing list.





PostPosted: Tue Sep 02, 2008 9:01 pm    Post subject: How to run a Rails project in different environments in NetBeans Reply with quote

Did you try typing in the value?

bruparel wrote:
Quote:
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@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Wed Sep 03, 2008 7:37 am    Post subject: How to run a Rails project in different environments in NetBeans Reply with quote

Hi Bharat,

bruparel wrote:
Quote:
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
Quote:
Bharat



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
bruparel
Posted via mailing list.





PostPosted: Wed Sep 03, 2008 1:38 pm    Post subject: How to run a Rails project in different environments in NetBeans Reply with quote

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

--
View this message in context: http://www.nabble.com/How-to-run-a-Rails-project-in-different-environments-in-NetBeans-tp19277866p19289350.html
Sent from the NetBeans Ruby - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB