1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Wipe Out All Precompiled Assets as a rails til

This commit is contained in:
jbranchaud
2019-12-03 10:13:32 -06:00
parent 6c444f82ec
commit 490c5a2236
2 changed files with 21 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket.
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
_882 TILs and counting..._
_883 TILs and counting..._
---
@@ -560,6 +560,7 @@ _882 TILs and counting..._
- [Truncate Almost All Tables](rails/truncate-almost-all-tables.md)
- [Update Column Versus Update Attribute](rails/update-column-versus-update-attribute.md)
- [Where Am I In The Partial Iteration?](rails/where-am-i-in-the-partial-iteration.md)
- [Wipe Out All Precompiled Assets](rails/wipe-out-all-precompiled-assets.md)
- [Write Safer Where Clauses With Placeholders](rails/write-safer-where-clauses-with-placeholders.md)
### React

View File

@@ -0,0 +1,19 @@
# Wipe Out All Precompiled Assets
You can clean up precompiled assets using:
```bash
$ rails assets:clean
```
This command is built to be safe for situations like rolling deploys. Any
assets that are still being used will not be cleaned up.
If you really want to wipe out _all_ precompiled assets, you should _clobber_
them:
```bash
$ rails assets:clobber
```
[source](https://edgeguides.rubyonrails.org/command_line.html#rails-assets)