Skip to content

Commit

Permalink
There are 3 caveats to Local Precompilation including 1 config change
Browse files Browse the repository at this point in the history
not 2 caveats with one of them being 2 config changes [ci skip]
  • Loading branch information
JohnRiv committed Jun 11, 2014
1 parent 1ed2c3c commit c43abb1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions guides/source/asset_pipeline.md
Expand Up @@ -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:

Expand All @@ -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.
Expand Down

0 comments on commit c43abb1

Please sign in to comment.