aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorcam song <neosoyn@gmail.com>2014-05-20 20:04:33 +0800
committercam song <neosoyn@gmail.com>2014-05-20 20:04:33 +0800
commit9aa807cc68791d0f95aa718583c808876ae3a10a (patch)
tree850942344976084fd5df6602da21c33bc9dbc067 /guides
parent8f8dfa488a7c20196d597cab6b9eb4ddaaa597c2 (diff)
downloadrails-9aa807cc68791d0f95aa718583c808876ae3a10a.tar.gz
rails-9aa807cc68791d0f95aa718583c808876ae3a10a.tar.bz2
rails-9aa807cc68791d0f95aa718583c808876ae3a10a.zip
Distinguish rake assets:clobber from rake assets:clean
Diffstat (limited to 'guides')
-rw-r--r--guides/source/command_line.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md
index 756c8f8b51..12bd67a07d 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
$ 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,9 @@ 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`