Commit d66f032
Clean old deployment directories (#1321)
Fix #1300
```sh
cd $(RELEASES_DIR) && \
ls -1dt */ | # list dirs by modification time
grep -v "^current/?$$" | # skip the 'current' symlink
grep -v "^$(TIMESTAMP)/$$" | # skip the one we just deployed
tail -n +4 | # keep the latest 3
xargs -r echo rm -rf # delete the rest (dry-mode with echo)
```
with "echo" in the command it's dry-mode
example output

---------
Co-authored-by: Mia Bajić <[email protected]>1 parent 317f28b commit d66f032
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
| |||
0 commit comments