From 6b5d25b28ea929d846e462b05a80f2b3e6f9bfea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 17 Nov 2019 16:24:05 +0100 Subject: [PATCH] Update Ruby after `deploy:updating` We need to download the most recent CONSUL and check its `.ruby-version` file before installing Ruby. The `rvm1-capistrano` gem knows it and was invoking the `updating` task before installing Ruby. So we were getting a warning in Capistrano about the `updating` task being executed twice. --- config/deploy.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index 22e57914d..c3ebf428b 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -47,9 +47,9 @@ set :whenever_roles, -> { :app } namespace :deploy do Rake::Task["puma:check"].clear_actions - before :starting, "rvm1:install:rvm" - before :starting, "rvm1:install:ruby" - before :starting, "install_bundler_gem" + after :updating, "rvm1:install:rvm" + after :updating, "rvm1:install:ruby" + after :updating, "install_bundler_gem" before "deploy:migrate", "remove_local_census_records_duplicates" after "deploy:migrate", "add_new_settings"