Finding the deployed revision with Capistrano

Silly question.

Is there a cap command that tells me which revision of a code base is
deployed to the target? Something like:

cap revision

I’d definitely like to check my code base revision in production
before deploying.

Hello,

Here’s how I’ve done it (in config/deploy.rb):

task :revision, :roles => :app do
run %(tail -1 #{deploy_to}/revisions.log)
end

-tero

Thank you very much. Excellent help!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs