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.
This commit is contained in:
Javi Martín
2019-11-17 16:24:05 +01:00
parent 81cf1635bb
commit 6b5d25b28e

View File

@@ -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"