Using dice.sh to automate DF builds

Last updated on
30 April 2025

In cases where one is using Homebrew on OSX, MAMP or just straight Linux, a script has been devised to help automate DF builds. This script will run drush make and place the Demo Framework distribution into the folder of your choice. After that is finished, it will automatically install the profile. This script can be used to install any distribution (ex: Lightning), not just DF!

Using dice.sh (build and install distro - automated, tested, beretta627 approved)

Download the dice shell script
$ wget https://gist.github.com/brantwynn/5110901/raw/dice.sh

Source the dice.sh file from your .bash_profile
source /path/to/dice.sh

Clone the distro to a working directory
$ git clone --branch 7.x-1.x http://git.drupal.org/project/df.git

Run the 'dice' command to install this distro (or others).
Usage: dice [makefile] [docroot] [dbuser] [dbpass] [database] [sitename] [distro]

$ cd df
$ dice build-df.make ~/Sites/demo root password demo.db demosite df

Notes:
Script will create the database and populate it with tables.
[dbuser] needs create privilege

Help improve this page

Page status: Not set

You can: