Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Latest commit

 

History

History
43 lines (29 loc) · 1.46 KB

dde-project-setup.md

File metadata and controls

43 lines (29 loc) · 1.46 KB

Configure a project to use DDE

Initial configuration is done once per project (e.g. by a team lead) and committed into the project repo.

docker-compose.yml file and an optional .drude folder are good indicators that a project is using DDE.

On Windows make sure your projects folder is not inside %USERPROFILE%/.babun folder.

Setup

  1. Edit settings.php for your site (see Drupal settings).

  2. Open console (Babun on Windows) and cd into <projects/your-drupal-site>.

  3. Install default DDE configuration file (downloads the latest docker-compose.yml):

    dsh install drude-config
    
  4. Update docker-compose.yml as necessary.

  5. Start DDE with:

    dsh up
    

Automate the initialization process

This is optional, but highly recommended.

Site provisioning can be automated via a custom command.
E.g. dsh init will call .drude/commands/init, where you can put project specific initialization tasks like:

  • initialize DDE configuration
  • import database or perform a site install
  • compile sass
  • run update, revert features, clear caches, etc.
  • enable/disable modules, update variable values
  • run Behat tests

For a fully working example of a DDE powered project (including dsh init) take a look at: