FaqRailsEnviroment

How do I run my application in production mode, test mode, or some other Rails environment?

This applies to NetBeans 6.5

If you are running your application on a WEBrick or Mongrel server, then you can easily switch the Rails environment by right-clicking the project node and choosing Properties from the pop-up menu. Type in the environment, or select one from the drop-down list. The list includes development, test, and production modes. It also looks in the config/environments folder for your custom environments.

If you are running the application on the GlassFish V3 server, then edit config/environment.rb and add RAILS_ENV="put environment here". Save the change and restart the server.

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