Skip to content

Commit 490c5a2

Browse files
committed
Add Wipe Out All Precompiled Assets as a rails til
1 parent 6c444f8 commit 490c5a2

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket.
99

1010
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
1111

12-
_882 TILs and counting..._
12+
_883 TILs and counting..._
1313

1414
---
1515

@@ -560,6 +560,7 @@ _882 TILs and counting..._
560560
- [Truncate Almost All Tables](rails/truncate-almost-all-tables.md)
561561
- [Update Column Versus Update Attribute](rails/update-column-versus-update-attribute.md)
562562
- [Where Am I In The Partial Iteration?](rails/where-am-i-in-the-partial-iteration.md)
563+
- [Wipe Out All Precompiled Assets](rails/wipe-out-all-precompiled-assets.md)
563564
- [Write Safer Where Clauses With Placeholders](rails/write-safer-where-clauses-with-placeholders.md)
564565

565566
### React
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Wipe Out All Precompiled Assets
2+
3+
You can clean up precompiled assets using:
4+
5+
```bash
6+
$ rails assets:clean
7+
```
8+
9+
This command is built to be safe for situations like rolling deploys. Any
10+
assets that are still being used will not be cleaned up.
11+
12+
If you really want to wipe out _all_ precompiled assets, you should _clobber_
13+
them:
14+
15+
```bash
16+
$ rails assets:clobber
17+
```
18+
19+
[source](https://edgeguides.rubyonrails.org/command_line.html#rails-assets)

0 commit comments

Comments
 (0)