How do I ensure production performance under Hosting Configuration 2.0?
Print this Article
Comment on this Article
Last Updated:
February 17, 2009 10:55 AM
NOTE: This article only applies to Deluxe and Unlimited Hosting accounts running Hosting Configuration 2.0. Ruby on Rails is not supported for Java-enabled hosting accounts.
SetENV is a function that specifies the environment (development, test, or production) in which your Ruby on Rails applications run. By default, your applications are configured to run in the production environment. We recommend this mode because of the performance advantages and minimal logging.
To override this setting and run your application in development or test modes, add the following code to your application's config/environment.rb file, replacing "[environment]" with values "development" or "test":
RAILS_ENV = "[environment]"