This is a sample vanila Drupal 7 installation preconfigured for use with Drude.
Sample Behat tests also included.
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/develop/bin/dsh -o /usr/local/bin/dsh sudo chmod +x /usr/local/bin/dsh -
Create the
<Projects>directorymkdir Projects cd Projects -
Install Drude's prerequisites (vagrant, virtualbox, boot2docker-vagrant)
dsh install prerequisites dsh install boot2docker -
Clone this repo into the Projects directory
git clone https://github.com/blinkreaction/drude-testing.git cd drude-testing -
Set up
settings.local.phpinsites/defaultcd docroot/sites/default cp example.settings.local.php settings.local.php -
Install Drupal
dsh drush si -y -
Add
192.168.10.10 hello-world.drudeto your hosts file -
Point your browser to
http://hello-world.drude
Site provisioning can be automated using dsh init, which calls the shell script in .drude/scripts/drude-init.sh.
This script is meant to be modified per project. The one in this repo will give you a good starting point.
Some common tasks that can be handled by the init script:
- initialize local settings files (Docker Compose, Drupal, Behat, etc.)
- import DB / perform a site install
- compile Sass
- run DB updates, revert features, clear cached, etc.
- apply local settings (e.g. enable/disable modules, updates variable values)
- run Behat tests available in the repo
Try it - run in this project repo:
dsh init