Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ruby after deploy:updating #3857

Merged
merged 1 commit into from
Nov 17, 2019
Merged

Update Ruby after deploy:updating #3857

merged 1 commit into from
Nov 17, 2019

Conversation

javierm
Copy link
Member

@javierm javierm commented Nov 17, 2019

References

Background

We were invoking the task to install Ruby before updating the application. However, the rvm1-capistrano gem makes sure this task is executed after updating the application, in case it needs to read the Ruby version present in the .ruby-version file. So the deploy:updating task was invoked twice, the first time before tasks which were supposed to be executed after it, generating a warning:

Capistrano tasks may only be invoked once. Since task `deploy:updating' was previously invoked, invoke("deploy:updating") will be skipped.
If you really meant to run this task again, use invoke!("deploy:updating")
THIS BEHAVIOR MAY CHANGE IN A FUTURE VERSION OF CAPISTRANO.

Objectives

  • Avoid invoking the deploy:updating task twice, which might lead to bugs during deployment

@javierm javierm added the Bug label Nov 17, 2019
@javierm javierm self-assigned this Nov 17, 2019
@javierm javierm added this to Reviewing in Roadmap via automation Nov 17, 2019
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.
@javierm javierm changed the title Update Ruby after updating tasks Update Ruby after deploy:updating Nov 17, 2019
@javierm javierm merged commit 815a080 into master Nov 17, 2019
Roadmap automation moved this from Reviewing to Release 1.1.0 Nov 17, 2019
@javierm javierm deleted the rvm_updating branch November 17, 2019 21:07
smarques pushed a commit to venetochevogliamo/consul that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Roadmap
  
Release 1.1.0
Development

Successfully merging this pull request may close these issues.

None yet

1 participant