diff options
author | Zachary Scott <e@zzak.io> | 2014-06-11 17:21:14 -0700 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-06-11 17:21:14 -0700 |
commit | 2ef44ff13b0316bd6c30cea955071f067ff5411d (patch) | |
tree | cbe3dc8e58874113b2eef0de146dc4749c6c89a6 /guides | |
parent | 6e44fd545003c21f69c4acb66df8bd941c93c0a8 (diff) | |
parent | c43abb1adecc9f05af47eecf234e6ebc57961bfa (diff) | |
download | rails-2ef44ff13b0316bd6c30cea955071f067ff5411d.tar.gz rails-2ef44ff13b0316bd6c30cea955071f067ff5411d.tar.bz2 rails-2ef44ff13b0316bd6c30cea955071f067ff5411d.zip |
Merge pull request #15657 from JohnRiv/guides_asset_pipeline_local
[ci skip] There are 3 caveats to Local Precompilation including 1 config change
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/asset_pipeline.md | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index 29c61cb55d..2d1548f252 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -856,10 +856,12 @@ duplication of work. Local compilation allows you to commit the compiled files into source control, and deploy as normal. -There are two caveats: +There are three caveats: * You must not run the Capistrano deployment task that precompiles assets. -* You must change the following two application configuration settings. +* You must ensure any necessary compressors or minifiers are +available on your development system. +* You must change the following application configuration setting: In `config/environments/development.rb`, place the following line: @@ -873,9 +875,6 @@ development mode, and pass all requests to Sprockets. The prefix is still set to would serve the precompiled assets from `/assets` in development, and you would not see any local changes until you compile assets again. -You will also need to ensure any necessary compressors or minifiers are -available on your development system. - In practice, this will allow you to precompile locally, have those files in your working tree, and commit those files to source control when needed. Development mode will work as expected. |