Sunday, June 22, 2008

How to call a common deploy task during the deployment?

For example, if you want to clean up your releases directory on every deployment (using Capistrano), simply add the following lines to your deployment script:


#deploy.rb
after 'deploy', "deploy:cleanup"


That's it :-)

No comments: