Skip to content

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

Closed

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

Activity

  1. beeradb commented on Feb 3, 2017

    @beeradb
    ContributorAuthor

    From @rfay on January 24, 2017 16:20

    Remember for drupal both public files and private files. Do we have private file support anyway?

    Probably this and https://github.com/drud/general/issues/4 should be rolled together into a "Allow configuration of both drupal and WP sites" - Trying to thing what gotchas are likely besides files and docroot - We explicitly don't support multisite do we? That should be decided.

    Anyway, we need explicit support for anything we would deploy whose location is configurable in either system.

  2. beeradb commented on Feb 3, 2017

    @beeradb
    ContributorAuthor

    From @tannerjfco on January 24, 2017 16:27

    You are right, in drupal's case public files dir, private files dir, temp dir, and in D8's case the CMI sync directory are all customizable. I do not believe we currently have private files support, if we do it is likely hardcoded to sites/default/files/private or something to that effect. The CMI directory is currently hardcoded to be "sync" one level above the docroot.

  3. beeradb commented on Feb 3, 2017

    @beeradb
    ContributorAuthor

    From @tannerjfco on January 24, 2017 18:16

    I do think https://github.com/drud/dcfg could be implemented to address most of the overall concerns. We could provide a default configuration that makes a site work w/ the default wp/drupal configs, with the option to provide your own. We could make this tool responsible for the final app configurations, and keep anything like file extraction in generic locations to be moved or symlinked by dcfg as configured.

  4. beeradb commented on Feb 3, 2017

    @beeradb
    ContributorAuthor

    From @frodopwns on January 25, 2017 20:47

    dcfg++ !!!!

  5. self-assigned this
    on Feb 6, 2017
  6. beeradb commented on Feb 8, 2017

    @beeradb
    ContributorAuthor

    reviewers:
    @rfay
    @frodopwns

  7. rickmanelius commented on May 3, 2017

    @rickmanelius
    Contributor

    @beeradb @tannerjfco I'm assuming there is nothing left in this issue that is still actionable.

  8. rickmanelius commented on Jun 1, 2017

    @rickmanelius
    Contributor

    Updating labels. Seems like something worth addressing before 1.0 (if the components here are not already addressed elsewhere).

  9. added this to the milestone on Jun 1, 2017
  10. rfay commented on Jun 8, 2017

    @rfay
    Member

    This issue is obsolete, closing. New approaches are in #293

  11. added a commit that references this issue on Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions