Skip to content

Resolve site repo / file structure assumptions and make them configurable #7

@beeradb

Description

@beeradb

From @tannerjfco on January 24, 2017 16:15

Implement dcfg to facilitate handling the "last mile" configurations needed to deploy a working site while removing our rigid repo structure assumptions

Current plan of attack:

  • Implement a new "template" plugin in dcfg to handle writing/placing configs for drupal and wp
  • Update ddev cli to remove config file writing and provide stuff like db port as an env var to web container

Original issue reports:
Currently we are heavily assuming that site repos will have a folder called docroot in them that represents where the vhost will serve the site from. This is problematic as it currently requires a specific repo structure to dev or deploy a site with drud. It would be ideal to not require repos to be restructured in order to use our products.

Currently, we heavily assume a drupal site will have its files at sites/default/files (drupal default) and that a wordpress site will have its files at content/uploads (non-default derived from newmedia structure). Both provide options for this directory to be customized, and it can be a non-trivial task to change this path after a site has been operating for some time. Similar to #4, we should provide a way for developers to specify these paths so that sites do not require restructuring efforts to be used in our offerings.

These are options that can be controlled in the config file for both wordpress and drupal, which provides a straight-forward way for developers to specify the customization, but we would need to be able to define this path in our code for extracting/placing files as well.

Copied from original issue: drud/general#10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions