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

Respect settings.php where it exists (if ddev didn't create it) #130

Closed
rfay opened this issue Apr 5, 2017 · 5 comments
Closed

Respect settings.php where it exists (if ddev didn't create it) #130

rfay opened this issue Apr 5, 2017 · 5 comments
Assignees
Milestone

Comments

@rfay
Copy link
Member

rfay commented Apr 5, 2017

What happened (or feature request):

For Drupal sites, we currently

  1. Overwrite the settings.php if it exists
  2. With a settings.php which includes settings.local.php

This seems problematic because many sites actually check the settings.php deliberately into code (without sensitive details, which go in settings.local.php or equivalent). So we could "help" a dev to introduce an unwanted change, or break a site by removing key standard settings that are intentional in checked-in settings.php.

Also, the fact that our override-settings.php includes settings.local.php could mean that we don't accomplish what we want anyway, as the settings.local.php might override what we do.

We also may want to include content in an overridden settings.php which identifies it as generated (when we've generated one in an import). That would let us remove it if we knew that we were the source of it. That does not solve the problem of when Drupal creates a settings.php on install.

What you expected to happen:

Codebase provided by the developer should not be altered.

How to reproduce it (as minimally and precisely as possible):

Create a drupal dev site using a repo that already has a settings.php.

Anything else do we need to know:

Related source links or issues (like source JIRA issue):

@rfay rfay changed the title Respect settings.php where it exists Respect settings.php where it exists (if ddev didn't create it) Apr 5, 2017
@rickmanelius rickmanelius self-assigned this Apr 12, 2017
@rickmanelius
Copy link
Contributor

I missed the initial conversation, but I definitely want to weigh in on this. Assigning to myself so I can catch in my filter.

@rickmanelius rickmanelius added this to the v0.3 milestone Apr 12, 2017
@tannerjfco
Copy link
Contributor

This behavior is changed in #123 on the import-db command. The command will now only write the settings file if it doesn't already exist, and the user will be notified whether or not a config file was written.

@rfay
Copy link
Member Author

rfay commented Apr 18, 2017

So @tannerjfco this is totally resolved in #123 right? So can be closed?

@tannerjfco
Copy link
Contributor

I believe the major concerns addressed here are resolved with the behavior change i described in #123. If we're good with that this can be closed.

@rfay
Copy link
Member Author

rfay commented Apr 18, 2017

Closing for now then.

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

No branches or pull requests

3 participants