Closed mishawakerman closed 3 years ago
Sorry but there is no way to prevent this. Not sure how much spaces are we talking about but there is probably something else causing this. I am assuming you use the rsync strategy, maybe you are syncing folders you should not or sth similar?
Was recently investigating unexpectedly high disk usage and found the
{{ ansistrano_deploy_to }}/shared
dir was using up a considerable amount of space (we deploy from a mono repo and some servers have multiple services, so this contained the code and dependencies for many services not being run). I found that deleting this directory after deploy didn't cause any issues but the fact that it ever exists means we need to keep enough disk capacity headroom to allow for it to exist transiently. Is there a way to prevent this directory from being created as a part of the role?