aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-02 17:19:32 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-12-02 17:19:32 +1100
commit6349f5caaed1e20477296d54f0c1850cc358323e (patch)
tree7ae953386994c7560e7b354e3d88ec60c2c04f1b /railties
parenta3a50a0336cbb86fd77c3a793c98f52c55f3da1c (diff)
downloadrails-6349f5caaed1e20477296d54f0c1850cc358323e.tar.gz
rails-6349f5caaed1e20477296d54f0c1850cc358323e.tar.bz2
rails-6349f5caaed1e20477296d54f0c1850cc358323e.zip
Move Rails Environment settings to above the initialization events in the config guide
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/configuring.textile25
1 files changed, 13 insertions, 12 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index 710faa6585..934080d60f 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -326,6 +326,19 @@ There are a few configuration options available in Active Support:
* +ActiveSupport::Logger.silencer+ is set to +false+ to disable the ability to silence logging in a block. The default is +true+.
+
+h3. Rails Environment Settings
+
+Some parts of Rails can also be configured externally by supplying environment variables. The following environment variables are recognized by various parts of Rails:
+
+* +ENV['RAILS_ENV']+ defines the Rails environment (production, development, test, and so on) that Rails will run under.
+
+* +ENV['RAILS_RELATIVE_URL_ROOT']+ is used by the routing code to recognize URLs when you deploy your application to a subdirectory.
+
+* +ENV["RAILS_ASSET_ID"]+ will override the default cache-busting timestamps that Rails generates for downloadable assets.
+
+* +ENV["RAILS_CACHE_ID"]+ and +ENV["RAILS_APP_VERSION"]+ are used to generate expanded cache keys in Rails' caching code. This allows you to have multiple separate caches from the same application.
+
h3. Initialization events
Rails has 5 initialization events which can be hooked into (listed in order that they are ran):
@@ -364,18 +377,6 @@ NOTE: You can use subfolders to organize your initializers if you like, because
TIP: If you have any ordering dependency in your initializers, you can control the load order by naming. For example, +01_critical.rb+ will be loaded before +02_normal.rb+.
-h3. Rails Environment Settings
-
-Some parts of Rails can also be configured externally by supplying environment variables. The following environment variables are recognized by various parts of Rails:
-
-* +ENV['RAILS_ENV']+ defines the Rails environment (production, development, test, and so on) that Rails will run under.
-
-* +ENV['RAILS_RELATIVE_URL_ROOT']+ is used by the routing code to recognize URLs when you deploy your application to a subdirectory.
-
-* +ENV["RAILS_ASSET_ID"]+ will override the default cache-busting timestamps that Rails generates for downloadable assets.
-
-* +ENV["RAILS_CACHE_ID"]+ and +ENV["RAILS_APP_VERSION"]+ are used to generate expanded cache keys in Rails' caching code. This allows you to have multiple separate caches from the same application.
-
h3. Changelog
* November 26, 2010: Removed all config settings not available in Rails 3 (Ryan Bigg)