Configuration management via Quicksilver on Pantheon

Configuration management via Quicksilver on Pantheon

On9th Jun 2022, 2024-12-20T09:28:43+05:30 ByKarthik Kumar D K | read
Listen Pause Resume Stop

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
workflows:
  sync_code:
    after:
      - type: webphp
        description: Run drush deploy after code sync
        script: private/admin/drush_deploy.php

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

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

<?php
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.

Related Articles

Recent Articles

Recent Quick Read

Recent Great People

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