tags:

views:

202

answers:

1

Usually when using capistrano, I will go and manually delete old releases from a deployed application. I understand that you can run 'cap deploy:cleanup' but that still leaves 5 releases. Is this it's intended purpose? Is there another way to cleanup old releases to just 1 previous deploy?

Thanks,

Josh

+4  A: 

You can use the :keep_releases variable to override the default of 5. Check this out.

jcrossley3
Great. That is exactly what I was looking for. Thank you.
Josh
You're welcome! You could've just accepted the answer! :-)
jcrossley3
@Josh, definitely, accept this answer if it solved your problem. You both get rep points this way.
AJ
May be worth noting that even if the find+rm command fails to remove some files the task seems to silently "succeed" when called via the `after` hook. Calling it directly shows the errors... I realized this when I was starting to run out of disk space.
conny