Capistrano - clean up old releases

Josh picture Josh · Jan 23, 2010 · Viewed 42.1k times · Source

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?

Answer

jcrossley3 picture jcrossley3 · Jan 23, 2010

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