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.

