-
-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved management of settings files, introduce settings.ddev.php (#990
) * Initial logic to create/include settings.php and settings.ddev.php * Do a better job of managing settings, filepaths, etc. * Move writing of common settings to its own function, new templates. * Move getTemplateFuncMap to utils.go. * Add user logging, pass around drupalSettings pointer. * Update test. * Update Drupal6/7 settings management. * Combine repeated code into one shared function. * Improve logging. * Only create settings.ddev.php if one doesn't exist. * Add .gitignore in sites/default. * Move createGitIgnore function to utils.go. * Improve logging, update function names. * Apply new settings logic to Backdrop. * Updates to tests and fix failures. * Update comments. * Add tests to validate settings management. * Reduce replication in test. * Remove test broken out into two new tests. * Add tests to verify .gitignore creation behavior. * Add documentation to new tests. * Add function/constants documentation. * Add comment to .gitignore template, update .gitignore format. * Update the settings file expected to contain hash salt. * Gotmetalinter disagrees with how I scope error values. * Add ddev signature to appended includes, conditional check for ddev settings. * Unconditionally create settings.ddev.php. * Create test to ensure settings.ddev.php is always overwritten. * Create struct to hold test settings location info. * Explicitly ignore return values from os.Remove() * Use test names as tmp dir prefixes. * Add DrupalBackdrop to test and struct names limited to those app types. * Add path of file to error output. * Improve logic when appending include of settings.ddev.php, update method name. * Do not output ddev-generated signature when modifying existing file. * Write to an empty .gitignore file. * Create expected directories relative to the app docroot. * Write path of directory relevant to the error. * Print dir, not settings file. * Fix typo. * Update to use path.Join in template outputs over filepath.Join. * Use Drupal-defined path variables, update tests. * Use standard include syntax and constants for each Drupal version and Backdrop, update template names. * Update to ensure write permissions are set before modifying files. * Remove debug output. * Update settings file documentation. * Remove unused declaration for debug output. * Improve note about including local settings files.
- Loading branch information
1 parent
05cf646
commit f3514b5
Showing
6 changed files
with
721 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.