From 33718baefa718d4f9573c91f8cbbe3a9cec2cf92 Mon Sep 17 00:00:00 2001 From: Marc Young Date: Tue, 12 Mar 2024 17:40:24 -0600 Subject: [PATCH] Updating configs. --- .ddev/config.yaml | 10 +--------- .gitignore | 1 + docroot/sites/default/settings.php | 6 ++++++ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.ddev/config.yaml b/.ddev/config.yaml index 0381828..5029c7d 100644 --- a/.ddev/config.yaml +++ b/.ddev/config.yaml @@ -1,4 +1,4 @@ -name: gryphon +name: cardinalservice type: drupal10 docroot: docroot php_version: "8.2" @@ -19,14 +19,6 @@ composer_version: "2" web_environment: [] disable_settings_managemen: true nodejs_version: "16" -hooks: - post-start: - - exec: drush --uri=https://cardinalservice.ddev.site uli - - post-import-db: - - exec: drush --uri=https://cardinalservice.ddev.site cr - - exec: drush --uri=https://cardinalservice.ddev.site cim -y - - exec: drush --uri=https://cardinalservice.ddev.site uli # Key features of ddev's config.yaml: diff --git a/.gitignore b/.gitignore index 821deee..32e72cb 100644 --- a/.gitignore +++ b/.gitignore @@ -161,3 +161,4 @@ drush/sites/.checksums # Deprecation detector rules .rules docroot/sites/**/settings.ddev.php +.ddev/config.local.yaml diff --git a/docroot/sites/default/settings.php b/docroot/sites/default/settings.php index 675a2c5..ad8b753 100644 --- a/docroot/sites/default/settings.php +++ b/docroot/sites/default/settings.php @@ -764,3 +764,9 @@ * * @link https://docs.acquia.com/blt/ */ + +// Automatically generated include for settings managed by ddev. +$ddev_settings = dirname(__FILE__) . '/settings.ddev.php'; +if (getenv('IS_DDEV_PROJECT') == 'true' && is_readable($ddev_settings)) { + require $ddev_settings; +}