-
Notifications
You must be signed in to change notification settings - Fork 75
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
capistrano-pending functionality doesn't work unless db role is defined #58
Comments
Very good findings, thanks for sharing! Your notes about it being related to the The I've made changes in the above commit to remedy the issue. In short, I'm setting that role to match the Now all of this said… I've been refactoring this code some more, as I was unraveling more issues with how the underlying functionality works (this is why back when you initially PR'd it I didn't want it enabled by default…I feared it would work inconsistently). For example:
In my refactoring, I'm discovering there really is very little in the 3rd-party gem which is not being done natively, so very well may remove it as a dependency by the time I'm finished ;) |
- removed capistrano-pending gem as a dependency - multi-node pending change reporting is now supported - users only warned about deploying (by default) when no pending changes are found on any node - refs are printed in a user-friendly symbolic format now - when target is ahead of deployed revision, user is warned about possibly going backwards in time and the log shown is a reverse log showing commits between current and commit being deployed (as is when deploying forward) Issue #58
Thanks for spending the time to make fix those issues. |
…ing messages - also eliminated the warning being presented on a fresh deploy where no REVISION files existed Issue #58
Wow, this looks fantastic! Good work on accounting for all of those scenarios. In regards to the fringe case you mentioned: if the 2nd point in this issue were to be implemented, it seems like it would solve for that use case, as it would warn the user that the deployed branch was being changed and they could do their due diligence to determine the impact of switching branches. I agree with your latest comment on that issue that creating the functionality as a separate Gem might make more sense. My team is managing an M1 project right now and they're frequently deploying different branches and it would be great to be able to pull that functionality into that project. |
* upstream/master: (35 commits) Prep for release Added setting `:magento_deploy_jobs` to support configuring number of parallel static content deployment tasks Improved error reporting on static content deployment failure Updated uses of bin/magento where output is parsed to include `--no-ansi` to eliminate potential failures Fixed issue where ./update dir may exist without a composer.json file, causing deployment failure Version bump Fixed Magento version check failing on some servers due to ansi output in non-interactive shells Cleaned up add auth credential settings and added information to README Updated pending change log hook README corrections Fixed spelling error in README (lame spell checker, lame) Updated CL and version number Updates to README for issue davidalger#58 Updated messaging to include host name on all pending change log heading messages Added full-featured pending changes logging Set :capistrano_pending_role default to match :magento_deploy_setup_role to avoid potential incompatibilities Fixed inability to set PATH in capistrano configuration vs `.bashrc` file Remove terminal-notifier dependency Prepare for version 0.5.9 release Add composer magento auth config ...
When a
db
role is not defined, the capistrano-pending functionality doesn't work. For example, if you're using a role configuration like this:You'll get output like this:
However if you setup both the app and db roles like this:
You'll get output like expected:
Forcing users to define a db role doesn't seem like the right approach, so I'll let you take it from here to come up with the proper approach to this bug as I don't have any more time to look into this.
This seems to be a bug caused by the Capistrano
:revision
variable (see here) not being populated unless adb
role is defined. If you agree that this seems to be a core Capistrano bug, not anything related to this Gem, then you're free to close this issue. We may just want to update the relevant section of this Gem's readme to alert users of this bug and open an issue on the Capistrano issues list.The text was updated successfully, but these errors were encountered: