From 8266b31cea23d2b80cd28cfc84b9f255ba33582f Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Mon, 5 Dec 2016 15:02:38 -0800 Subject: [PATCH] add cap hook for tagging deployments in git --- Capfile | 1 + Gemfile | 1 + Gemfile.lock | 3 +++ 3 files changed, 5 insertions(+) diff --git a/Capfile b/Capfile index 9cd87e3d7..c0f9747f6 100644 --- a/Capfile +++ b/Capfile @@ -9,6 +9,7 @@ require 'capistrano/rbenv' require 'capistrano/rails' require 'whenever/capistrano' require 'capistrano3/unicorn' +require 'capistrano/deploytags' require 'new_relic/recipies' # Load custom tasks from `lib/capistrano/tasks` if you have any defined diff --git a/Gemfile b/Gemfile index b9e8b7233..3d957743a 100644 --- a/Gemfile +++ b/Gemfile @@ -74,5 +74,6 @@ end group :development do gem 'ruby-prof' + gem 'capistrano-deploytags', '~> 1.0.0', require: false # gem 'sql-logging' end diff --git a/Gemfile.lock b/Gemfile.lock index 3c1c284c6..b979cc7e1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -92,6 +92,8 @@ GEM capistrano-bundler (1.1.4) capistrano (~> 3.1) sshkit (~> 1.2) + capistrano-deploytags (1.0.4) + capistrano (>= 3.2.0) capistrano-rails (1.1.3) capistrano (~> 3.1) capistrano-bundler (~> 1.1) @@ -422,6 +424,7 @@ DEPENDENCIES bigquery! byebug capistrano (~> 3.4.0) + capistrano-deploytags (~> 1.0.0) capistrano-rails capistrano-rbenv capistrano3-unicorn