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 an existing user-managed AdditionalConfiguration.php, fixes #1053 #1140

Merged
merged 2 commits into from Oct 1, 2018

Conversation

andrewfrench
Copy link
Contributor

@andrewfrench andrewfrench commented Sep 29, 2018

The Problem/Issue/Bug:

Our documentation claimed that we'd only write an AdditionalConfiguration.php when the file either didn't exist or was ddev-managed, but that wasn't the case.

How this PR Solves The Problem:

If AdditionalConfiguration.php exists, ddev will now check that the file is ddev-managed by ensuring the usual ddev file signature exists.

Manual Testing Instructions:

Use #1053's issue recreation method to ensure that a user-managed AdditionalConfiguration.php is respected and that a warning is emitted to the user indicating this:

  1. composer create-project typo3/cms-base-distribution my-typo3-site ^8
  2. cd my-typo3-site
  3. echo "<?php" > public/typo3conf/AdditionalConfiguration.php
  4. ddev config

Now, ensure ddev can create the config file in the usual case:

  1. rm public/typo3conf/AdditionalConfiguration.php
  2. ddev config

AdditionalConfiguration.php should have been generated by ddev.

Automated Testing Overview:

Related Issue Link(s):

#1053

Release/Deployment notes:

Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks correct to me; I manually tested against the OP and it fixes the problem. Thanks!

@andrewfrench andrewfrench merged commit e0e5d76 into ddev:master Oct 1, 2018
@andrewfrench andrewfrench deleted the 2018-09-28_typo3-config branch October 1, 2018 23:35
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

2 participants