You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
The text was updated successfully, but these errors were encountered:
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
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.
What happened (or feature request):
For Drupal sites, we currently
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):
The text was updated successfully, but these errors were encountered: