aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-05-20 21:39:06 +0200
committerYves Senn <yves.senn@gmail.com>2014-05-20 21:40:22 +0200
commitf3407d1392ed55aa4ff0a7d50ea6722f251c86ac (patch)
tree3b54ff9457d9212bd8309885abfea36a0f630cf3 /guides
parent59ee23f721fe1caab877bf6a1875a51cbbea45ac (diff)
parent9aa807cc68791d0f95aa718583c808876ae3a10a (diff)
downloadrails-f3407d1392ed55aa4ff0a7d50ea6722f251c86ac.tar.gz
rails-f3407d1392ed55aa4ff0a7d50ea6722f251c86ac.tar.bz2
rails-f3407d1392ed55aa4ff0a7d50ea6722f251c86ac.zip
Merge pull request #15191 from camsong/master
Distinguish rake assets:clobber from rake assets:clean [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/command_line.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md
index 4dfafc153d..0bcdc4011a 100644
--- a/guides/source/command_line.md
+++ b/guides/source/command_line.md
@@ -355,7 +355,8 @@ To get the full backtrace for running rake task you can pass the option
```bash
$ bin/rake --tasks
rake about # List versions of all Rails frameworks and the environment
-rake assets:clean # Remove compiled assets
+rake assets:clean # Remove old compiled assets
+rake assets:clobber # Remove compiled assets
rake assets:precompile # Compile all the assets named in config.assets.precompile
rake db:create # Create the database from config/database.yml for the current Rails.env
...
@@ -393,7 +394,12 @@ Database schema version 20110805173523
### `assets`
-You can precompile the assets in `app/assets` using `rake assets:precompile` and remove those compiled assets using `rake assets:clean`.
+You can precompile the assets in `app/assets` using `rake assets:precompile`,
+and remove older compiled assets using `rake assets:clean`. The `assets:clean`
+task allows for rolling deploys that may still be linking to an old asset while
+the new assets are being built.
+
+If you want to clear `public/assets` completely, you can use `rake assets:clobber`.
### `db`