Skip to content

Commit

Permalink
Explicitly commit web/sites/default/settings.php
Browse files Browse the repository at this point in the history
This prevents pantheon-systems/drupal-integrations from scaffolding it
and the build step subsequently failing for files modified outside the
.gitignore.
  • Loading branch information
mbaynton committed Nov 6, 2020
1 parent fc94e4c commit 89b9c4c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions web/sites/default/settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

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

/**
* Include the Pantheon-specific settings file.
*
* n.b. The settings.pantheon.php file makes some changes
* that affect all environments that this site
* exists in. Always include this file, even in
* a local development environment, to ensure that
* the site settings remain consistent.
*/
include __DIR__ . "/settings.pantheon.php";

/**
* Skipping permissions hardening will make scaffolding
* work better, but will also raise a warning when you
* install Drupal.
*
* https://www.drupal.org/project/drupal/issues/3091285
*/
// $settings['skip_permissions_hardening'] = TRUE;

/**
* If there is a local settings file, then include it
*/
$local_settings = __DIR__ . "/settings.local.php";
if (file_exists($local_settings)) {
include $local_settings;
}

0 comments on commit 89b9c4c

Please sign in to comment.