Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.47 KB

drude-project-setup.md

File metadata and controls

43 lines (29 loc) · 1.47 KB

Configure a project to use Drude

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 Drude.

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 Drude configuration file (downloads the latest docker-compose.yml):

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

  5. Start Drude 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 Drude 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 Drude powered project (including dsh init) take a look at: