Yukii's Blog

Yet Another Tech Blog.

Capistrano3 で revision を表示する

2019/02/21
desc 'Show deployed revision'
task :revision do
  on primary :app do
    execute "cat #{Shellwords.shellescape(current_path)}/REVISION"
  end
end

deploy.rb に追記したのちに

bundle exec cap production revision

tags:  capistrano