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

Always backup live before deployment. #689

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dipakmdhrm
Copy link
Collaborator

No description provided.

@dipakmdhrm dipakmdhrm requested a review from AronNovak July 16, 2024 07:35
@mariano-dagostino mariano-dagostino self-requested a review July 16, 2024 13:23
Copy link
Collaborator

@mariano-dagostino mariano-dagostino left a comment

Choose a reason for hiding this comment

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

@dipakmdhrm I would make this optional. For small sites it can work, for bigger sites It can delay the deployment considerably.

@@ -385,6 +385,9 @@ public function deployPantheonSync(string $env = 'test', bool $do_deploy = TRUE)
->stopOnFail();

if ($do_deploy) {
if ($env == 'live') {
Copy link
Member

Choose a reason for hiding this comment

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

To actually implement what @mariano-dagostino suggested, add the environment variable to .travis.yml to allow it conditionally. Like DEPLOY_AUTOBACKUP=true or similar, then getenv here. Also mind that we are inside DDEV, so we need to pass it: https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#providing-custom-environment-variables-to-a-container , https://github.com/Gizra/drupal-starter/blob/main/ci-scripts/prepare_deploy.sh#L26

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.

3 participants