Skip to content

More generic way of appending settings to settings.local.php #46

@marcelovani

Description

@marcelovani

Background

Currently, the site:settings command will append the contents of a template (https://github.com/dennisinteractive/drupal_console_commands/blob/master/src/Command/Site/Settings/Includes/Drupal8/settings.local.php) onto settings.local.php.

This is not very generic, it makes the assumption that everyone uses the modules in the template.

Proposed solution

  • Remove the template above.
  • Do not include the template
  • Add new section on sites yml containing the settings for each env i.e.
  settings:
    config:
      stage_file_proxy.settings:
        origin: cdn.subscriptions.dennis.co.uk
      cdn.settings:
        mapping:
          domain: http://subscriptions.vm8.didev.co.uk

The generated settings.local.php should look like this:

$config['stage_file_proxy.settings']['origin'] = 'cdn.subscriptions.dennis.co.uk';
$config['cdn.settings']['mapping']['domain'] = 'http://subscriptions.vm8.didev.co.uk';

Metadata

Metadata

Assignees

No one assigned

    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