Skip to content
Open
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
10 changes: 0 additions & 10 deletions .devpanel/composer_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,3 @@ composer require -n --no-plugins --no-update drush/drush cweagans/composer-patch

# Programmatically fix Composer 2.2 allow-plugins to avoid errors
composer config --no-plugins allow-plugins.cweagans/composer-patches true

# Scaffold settings.php.
composer config --no-plugins -jm extra.drupal-scaffold.file-mapping '{
"[web-root]/sites/default/settings.php": {
"path": "web/core/assets/scaffold/files/default.settings.php",
"overwrite": false
}
}'
composer config --no-plugins scripts.post-drupal-scaffold-cmd \
'cd web/sites/default && (test -n "$(grep '\''include \$devpanel_settings;'\'' settings.php)" || patch -Np1 -r /dev/null < $APP_ROOT/.devpanel/drupal-settings.patch || :)'
18 changes: 0 additions & 18 deletions .devpanel/drupal-settings.patch

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/web/libraries/

# Ignore sensitive configuration files
/web/sites/*/settings.php
/web/sites/*/settings.local.php
/web/sites/*/services.yml
/web/sites/*/services.local.yml
Expand Down
54 changes: 54 additions & 0 deletions web/sites/default/settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php

// phpcs:ignoreFile

/**
* @file
* Drupal site-specific configuration file.
*/

/**
* Load services definition file.
*/
$settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.yml';

/**
* The default list of directories that will be ignored by Drupal's file API.
*
* By default ignore node_modules and bower_components folders to avoid issues
* with common frontend tools and recursive scanning of directories looking for
* extensions.
*
* @see \Drupal\Core\File\FileSystemInterface::scanDirectory()
* @see \Drupal\Core\Extension\ExtensionDiscovery::scanDirectory()
*/
$settings['file_scan_ignore_directories'] = [
'node_modules',
'bower_components',
];

/**
* Location of the site configuration files.
*/
$settings['config_sync_directory'] = '../config/sync';

/**
* Include DDEV settings.
*/
if (getenv('IS_DDEV_PROJECT') == 'true' && file_exists(__DIR__ . '/settings.ddev.php')) {
include __DIR__ . '/settings.ddev.php';
}

/**
* Load DevPanel override configuration, if available.
*/
if (getenv('DP_APP_ID') !== FALSE && file_exists(dirname($app_root) . '/.devpanel/settings.devpanel.php')) {
include dirname($app_root) . '/.devpanel/settings.devpanel.php';
}

/**
* Load local development override configuration, if available.
*/
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
include $app_root . '/' . $site_path . '/settings.local.php';
}