FAQRailsEnvironmentRake

How do I get Rake to run in a different mode, such as production mode or test mode?

This pertains to NetBeans IDE in version >=6.5

The Rails Environment setting in the Project Properties dialog box does not affect the Run/Debug Rake dialog box. If you need to run a Rake task using a different rails environment, type RAILS_ENV="environment-setting" in the Rake Arguments text box in the Project Properties dialog box.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo