aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2014-12-19 14:16:29 -0800
committerGodfrey Chan <godfreykfc@gmail.com>2014-12-19 14:55:34 -0800
commit2d04bdd86fb4a9c69e1ca1ffe92188a9ca4f88c8 (patch)
tree842f600e072f0ed0b13062a82f36cb7be6129433 /guides/source
parent352680c1d394a2177437f20673ede0753d651913 (diff)
downloadrails-2d04bdd86fb4a9c69e1ca1ffe92188a9ca4f88c8.tar.gz
rails-2d04bdd86fb4a9c69e1ca1ffe92188a9ca4f88c8.tar.bz2
rails-2d04bdd86fb4a9c69e1ca1ffe92188a9ca4f88c8.zip
Merge pull request #18100 from chancancode/serve_static_files
Allow static asset serving from env variable (enhanced!) Conflicts: railties/CHANGELOG.md
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/asset_pipeline.md5
-rw-r--r--guides/source/configuring.md2
-rw-r--r--guides/source/rails_on_rack.md2
3 files changed, 4 insertions, 5 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md
index 8764546873..156daf1bac 100644
--- a/guides/source/asset_pipeline.md
+++ b/guides/source/asset_pipeline.md
@@ -167,9 +167,8 @@ directory. Files in this directory are served by the Sprockets middleware.
Assets can still be placed in the `public` hierarchy. Any assets under `public`
will be served as static files by the application or web server when
-`config.serve_static_assets` is set to true. You should use
-`app/assets` for files that must undergo some pre-processing before they are
-served.
+`config.serve_static_files` is set to true. You should use `app/assets` for
+files that must undergo some pre-processing before they are served.
In production, Rails precompiles these files to `public/assets` by default. The
precompiled copies are then served as static assets by the web server. The files
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 7688962c01..ee46533e16 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -120,7 +120,7 @@ numbers. New applications filter out passwords by adding the following `config.f
* `secrets.secret_key_base` is used for specifying a key which allows sessions for the application to be verified against a known secure key to prevent tampering. Applications get `secrets.secret_key_base` initialized to a random key present in `config/secrets.yml`.
-* `config.serve_static_assets` configures Rails itself to serve static assets. Defaults to true, but in the production environment is turned off as the server software (e.g. NGINX or Apache) used to run the application should serve static assets instead. Unlike the default setting set this to true when running (absolutely not recommended!) or testing your app in production mode using WEBrick. Otherwise you won't be able use page caching and requests for files that exist regularly under the public directory will anyway hit your Rails app.
+* `config.serve_static_files` configures Rails itself to serve static files. Defaults to true, but in the production environment is turned off as the server software (e.g. NGINX or Apache) used to run the application should serve static assets instead. Unlike the default setting set this to true when running (absolutely not recommended!) or testing your app in production mode using WEBrick. Otherwise you won't be able use page caching and requests for files that exist regularly under the public directory will anyway hit your Rails app.
* `config.session_store` is usually set up in `config/initializers/session_store.rb` and specifies what class to use to store the session. Possible values are `:cookie_store` which is the default, `:mem_cache_store`, and `:disabled`. The last one tells Rails not to deal with sessions. Custom session stores can also be specified:
diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md
index 0dec0e139b..042ebde9bb 100644
--- a/guides/source/rails_on_rack.md
+++ b/guides/source/rails_on_rack.md
@@ -233,7 +233,7 @@ Much of Action Controller's functionality is implemented as Middlewares. The fol
**`ActionDispatch::Static`**
-* Used to serve static assets. Disabled if `config.serve_static_assets` is `false`.
+* Used to serve static files. Disabled if `config.serve_static_files` is `false`.
**`Rack::Lock`**