Configuration management via Quicksilver on Pantheon

ByKarthik Kumar D Kon9th Jun 2022, 2022-12-01T08:00:00+05:30
Read Article
Configuration management via Quicksilver on Pantheon

As we saw in the earlier article, like how we manage the configuration across the environments.

In this article we are going to see how Drupal configurations can be deployed or imported across the environments with the help of Quicksilver which hooks into platform workflows to automate your Pantheon WebOps workflow across the environments.

In the pantheon environment’s drupal code base, you can see a pantheon.yml file, in this file you can add your custom workflows.

As you can see in the below example of pantheon.yml, we are running a script after the code sync on the pantheon environment.

​​api_version: 1
      - type: webphp
        description: Run drush deploy after code sync
        script: private/scripts/drush_deploy.php

And the script has the drush command as shared below private/scripts/drush_deploy.php, which runs

  1. Database updates
  2. Cache rebuilds
  3. Config import
  4. Deploy hook start (if any)

echo ‘Start drush deploy’;
passthru(drush deploy -y);
echo ‘Finish drush deploy’;

This way Pantheon’s Quicksilver tool will help people to manage the configuration across the environments seamlessly.

We Need Your Consent
By clicking “Accept Cookies”, you agree to the storing of cookies on your device to enhance your site navigation experience.
I Accept Cookies