0

I would like to prune older versions of my application under releases folder to just maintain the last 5 versions of my application. Currently it contains a lot of releases from the beginning. I don't want do this manually by doing a remote login and remove older folders, but would like it automated as part of Capfile, how should I do this.

4

1 回答 1

2

config/deploy.rb你可以设置:keep_releases选项

set :keep_releases, 5
于 2013-02-24T14:27:10.503 回答