Capistrano: show current deployed revision

Published on Author Akhil BansalLeave a comment

Capistrano task to show currently deployed revision

namespace :deploy do
  desc 'Show current deployed revision'
  task :show_current_revision do
    on roles(:app) do
      within release_path do
        execute :cat, "REVISION"
      end
    end
  end
end

Leave a Reply

Your email address will not be published. Required fields are marked *