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

Closes #185 & Closes #181 Update example Quicksilver scripts in light of new commands/options. #186

Merged
merged 5 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions settings-examples/pantheon.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@ workflows:
- type: webphp
description: Run Config Distro Update with Drush
script: private/scripts/drush_config_distro_update.php
# Sync permissions after running Config Distro Update.
- type: webphp
description: Sync Permissions with Drush
script: private/scripts/drush_az_quickstart_sync_permissions.php
sync_code:
after:
# Run Config Distro update when pushing/syncing code into dev/multidev.
- type: webphp
description: Run Config Distro Update with Drush
script: private/scripts/drush_config_distro_update.php
# Sync permissions after running Config Distro Update.
- type: webphp
description: Sync Permissions with Drush
script: private/scripts/drush_az_quickstart_sync_permissions.php
6 changes: 6 additions & 0 deletions web/private/scripts/drush_az_quickstart_sync_permissions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

// Ensure new permissions are synced.
echo "Syncing permissions...\n";
passthru('drush -n -y az-core-config-add-permissions');
echo "Permissions sync complete.\n";
3 changes: 1 addition & 2 deletions web/private/scripts/drush_config_distro_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

// Ensure update mode is 'merge' and run config-distro-update.
echo "Running Config Distro update...\n";
passthru('drush -n -y state:set config_sync.update_mode 1 --input-format=integer');
passthru('drush -n -y config-distro-update');
passthru('drush -n -y config-distro-update --update-mode=1');
echo "Config Distro update complete.\n";

// Rebuild the cache.
Expand Down
Loading