What happens when production plays with a revolver? Recently I've found this in a deployment script.
find "releases" -maxdepth 1 -type d -name "*" | tail -n +6 | xargs rm -rf
Deploy cleanup was a lottery - it ran before deployment.
to note: list is arbitrary and not sorted in any way, so it can nuke the dir that current points to.
more correctly would be to say i "found out" not just "found" when lights went 404