Skip to content

Require capistrano-rbenv only in staging #325

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

Merged
merged 1 commit into from
Feb 9, 2018

Conversation

sauloperez
Copy link
Collaborator

@sauloperez sauloperez commented Feb 9, 2018

Production is not provisioned with Rbenv yet. We're first refactoring staging's provisioning and then, we'll work on production. So, this patch is temporary.

This fixes the issue we had in https://github.com/coopdevs/timeoverflow/releases/tag/v1.3.0 while
deploying and https://github.com/coopdevs/timeoverflow/releases/tag/v1.3.1 fixed.

Then we can bring these changes related to capistrano-rbenv back to master.

Production is not provisioned with Rbenv yet. We're first refactoring
staging's provisioning and then, we'll work on production. So, this
patch is temporary.

This fixes the issue we had in
https://github.com/coopdevs/timeoverflow/releases/tag/v1.3.0 while
deploying and
https://github.com/coopdevs/timeoverflow/releases/tag/v1.3.1 fixed.
@enricostano
Copy link
Contributor

Maybe we can create an issue or a trello card to remind us to remove this ASAP and make it a dependency of https://trello.com/c/UCMTlV3g

@sauloperez
Copy link
Collaborator Author

We definitely need to keep track of this

@sauloperez sauloperez merged commit d576743 into develop Feb 9, 2018
@sauloperez sauloperez deleted the dont-require-capistrano-rbenv-production branch February 9, 2018 16:29
sauloperez added a commit that referenced this pull request Feb 9, 2018
* develop:
  Require capistrano-rbenv only in staging
  Add unicorn configuration

This brings the patch that skips capistrano-rbenv when deploying to
production. See: #325

As a result, we also bring in the new staging's unicorn config file,
but this has no effect in production as no config file is specified in
/etc/systemd/system/timeoverflow.service.
@sauloperez sauloperez mentioned this pull request Mar 19, 2018
@sauloperez
Copy link
Collaborator Author

Documented in a Trello card

require 'capistrano/rbenv'

stage = ARGV.first
if stage == :staging # Sorry, production is not ready yet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'staging' not `:staging'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants