aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2013-12-14 12:44:54 -0800
committerschneems <richard.schneeman@gmail.com>2013-12-14 12:44:54 -0800
commit8d005eb8671851ada381f1e521d7f11aa874dc12 (patch)
tree00e21a7291297831ce166c87decabaa72ac48b4c /guides/source
parentbb59c1d0af975f19c1daeb11546817e99bdb1534 (diff)
downloadrails-8d005eb8671851ada381f1e521d7f11aa874dc12.tar.gz
rails-8d005eb8671851ada381f1e521d7f11aa874dc12.tar.bz2
rails-8d005eb8671851ada381f1e521d7f11aa874dc12.zip
[ci skip] add `assets.raise_runtime_errors` flag
The flag will be used in multiple places to check for errors during runtime if enabled. Source: https://github.com/rails/sprockets-rails/pull/100
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/configuring.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 8ac34c9716..add8ec10a7 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -136,7 +136,9 @@ numbers. New applications filter out passwords by adding the following `config.f
* `config.assets.enabled` a flag that controls whether the asset
pipeline is enabled. It is set to true by default.
-* `config.assets.compress` a flag that enables the compression of compiled assets. It is explicitly set to true in `config/production.rb`.
+*`config.assets.raise_runtime_errors`* Set this flag to `true` to enable additional runtime error checking. Recommended in `config/environments/development.rb` to minimize unexpected behavior when deploying to `production`.
+
+* `config.assets.compress` a flag that enables the compression of compiled assets. It is explicitly set to true in `config/environments/production.rb`.
* `config.assets.css_compressor` defines the CSS compressor to use. It is set by default by `sass-rails`. The unique alternative value at the moment is `:yui`, which uses the `yui-compressor` gem.
@@ -775,7 +777,7 @@ error similar to given below will be thrown.
ActiveRecord::ConnectionTimeoutError - could not obtain a database connection within 5 seconds. The max pool size is currently 5; consider increasing it:
```
-If you get the above error, you might want to increase the size of connection
+If you get the above error, you might want to increase the size of connection
pool by incrementing the `pool` option in `database.yml`
NOTE. If you have enabled `Rails.threadsafe!` mode then there could be a chance that several threads may be accessing multiple connections simultaneously. So depending on your current request load, you could very well have multiple threads contending for a limited amount of connections.