-
Notifications
You must be signed in to change notification settings - Fork 40
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
Avoid the need to have 2-step deployments to get rid of a module #773
base: main
Are you sure you want to change the base?
Conversation
We should try it at a client project where this need arises next time. |
Co-authored-by: Mariano D'Agostino <mariano-dagostino@users.noreply.github.com>
$uninstall_success = $this->taskExec("terminus remote:drush $pantheon_terminus_environment -- pm:uninstall " . implode(' ', $modules_to_uninstall) . " --yes") | ||
->run() | ||
->getExitCode(); | ||
$needs_revert = !$uninstall_success; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$uninstall_success = $this->taskExec("terminus remote:drush $pantheon_terminus_environment -- pm:uninstall " . implode(' ', $modules_to_uninstall) . " --yes") | |
->run() | |
->getExitCode(); | |
$needs_revert = !$uninstall_success; | |
$needs_revert = $this->taskExec("terminus remote:drush $pantheon_terminus_environment -- pm:uninstall " . implode(' ', $modules_to_uninstall) . " --yes") | |
->run() | |
->getExitCode(); |
Exit code 0 is success.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mariano-dagostino Thanks for trying it out! Do you have the full build log possibly? As I see the build was restarted in debug mode, so I cannot access it anymore. |
#735
Status