Drude powered Drupal 8 Installation
This is a sample vanilla Drupal 8 installation preconfigured for use with Drude.
Instructions (Mac, Windows, Linux)
On Windows you will need a Linux-type shell. Install Babun before proceeding and run all commands in it.
Instructions were not tested with other shells on Windows.
-
Install
dsh
(Drude Shell)sudo curl -L https://raw.githubusercontent.com/blinkreaction/drude/master/bin/dsh -o /usr/local/bin/dsh sudo chmod +x /usr/local/bin/dsh
-
Create the
<Projects>
directoryE.g.
~/Projects
on Mac and Linux,c:\Projects
on Windowsmkdir Projects cd Projects
-
Install Drude's prerequisites
All operating systems: docker, docker-compose
Mac and Windows additionally: virtualbox, vagrant, boot2docker-vagrantdsh install prerequisites dsh install boot2docker
-
Clone this repo into the Projects directory
git clone https://github.com/blinkreaction/drude-d8-testing.git cd drude-d8-testing
-
Initialize the site
This will initialize local settings and install the site via drush
dsh init
-
On Windows add
192.168.10.10 drupal8.drude
to your hosts file -
Point your browser to
http://drupal8.drude
Automation with 'dsh init'
Site provisioning can be automated using dsh init
, which calls script .drude/commands/init.
This script is meant to be modified per project. The one in this repo will give you a good example of advanced init script.
Some common tasks that can be handled by the init script:
- initialize local settings files for Docker Compose, Drupal, Behat, etc.
- import DB or perform a site install
- compile Sass
- run DB updates, revert features, clear caches, etc.
- enable/disable modules, update variables values
- run Behat tests