Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use standard Drupal/Backdrop default.settings.php as settings.php, fixes #1097 #2500

Merged
merged 4 commits into from Sep 10, 2020

Conversation

rfay
Copy link
Member

@rfay rfay commented Sep 9, 2020

The Problem/Issue/Bug:

ddev has always provided a very minimal settings.php if none existed, which meant that some standard settings (and some hints to the user) were omitted.

How this PR Solves The Problem:

Each settings.php file for drupal6/7/8/9/backdrop is now based almost entirely on default.settings.php. The only thing that's added is the include of the settings.ddev.php.

Manual Testing Instructions:

  • Test settings creation with rm sites/default/settings*.php && ddev start for drupal6/7/8/9/backdrop. Verify that the settings.php file gets created, is based on default.settings.php, and the site is functional.
  • Verify that if a settings.php already exists, it gets the include of settings.ddev.php appended (if necessary)
  • Verify that if a settings.php exists and already had the include of settings.ddev.php, it remains untouched.

Automated Testing Overview:

I think the existing tests are adequate for this.

Related Issue Link(s):

Release/Deployment notes:

@rfay rfay linked an issue Sep 9, 2020 that may be closed by this pull request
@rfay rfay merged commit 617c414 into ddev:master Sep 10, 2020
@rfay rfay deleted the 20200909_drupal_settings branch September 10, 2020 23:29
@rfay rfay mentioned this pull request Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drupal and backdrop settings.php needs to be based on default.settings.php
1 participant