Skip to content

Running ddev start should create a ddev managed Drupal settings.php #346

Closed

Description

@rickmanelius

What happened (or feature request):

  • Change Request

What you expected to happen:

In issue #308 (Manage the settings.php file if we create it), one of the stated intentions was to make it easier to remove a dangling Drupal or WordPress database connection file when running ddev rm. We attempted to solve this by adding a string into the file itself so that we knew ddev was managing it and therefore we were OK to remove it.

I think we missed a use case, notably running ddev start to build a Drupal or WordPress site from a site install. In this situation, we're not adding this ddev key to the file. From ddev's perspective, it treats this like a custom settings.php file and therefore will not remove it.

I propose a different approach. It would seem to me that interjecting the ddev string post ddev start would ensure there is a consistent behavior and that an end-user would need to manually remove that if/when they want to store and manage this config themselves.

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

Anything else do we need to know:

Related source links or issues:

Activity

  1. modified the milestones: , on Jun 21, 2017
  2. rfay commented on Sep 26, 2017

    @rfay
    Member

    Related: Documentation and settings.php support dealing with the whole issue. We need a coordinated approach to this.

  3. modified the milestones: v1.1.0, v1.0.0 on Dec 11, 2017
  4. self-assigned this
    on Jan 31, 2018
  5. rickmanelius commented on Mar 19, 2018

    @rickmanelius
    ContributorAuthor

    We've moved the creation of settings.php at the config step (see #692), which will be released in v0.16.0 by the end of this week. Marking this as a duplicate and closing out.

  6. removed this from the v1.0.0 milestone on Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions