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

SetSiteSettingsPaths() has to be set after we've read the config, fixes #1553 #1554

Merged
merged 3 commits into from
Apr 30, 2019

Conversation

rfay
Copy link
Member

@rfay rfay commented Apr 29, 2019

The Problem/Issue/Bug:

OP #1553 points out that the ddev_drush_settings.php is getting created in the projectroot instead of in the settings directory.

This turns out to be a side-effect of default project creation, the project type was being set after the site settings file was derived.

How this PR Solves The Problem:

  • Move the settings file setup to after the reading of the project config.yaml
  • Add test coverage

Manual Testing Instructions:

ddev start
You should be able to drush sql-cli successfully if you have a drush8 on the host.

Or just verify that ddev_drush_settings.php got created in the (Drupal) sites/default

Automated Testing Overview:

Added simplistic test coverage for the settings location and the ddev_drush_settings.php in TestDdevFullSiteSetup

Related Issue Link(s):

OP #1553

@rfay rfay added this to the v1.8.0 milestone Apr 29, 2019
@rfay rfay self-assigned this Apr 29, 2019
@rfay rfay force-pushed the 20190429_fix_drush_config branch from e7fa813 to c4eb6c1 Compare April 30, 2019 14:17
@rfay rfay merged commit 7b2fbab into ddev:master Apr 30, 2019
@rfay rfay deleted the 20190429_fix_drush_config branch April 30, 2019 19:48
@rfay rfay mentioned this pull request May 9, 2019
8 tasks
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.

None yet

1 participant