Skip to content

Instantly share code, notes, and snippets.

@balsama
Created January 7, 2016 16:51
Show Gist options
  • Save balsama/4af135955de4e871b22a to your computer and use it in GitHub Desktop.
Save balsama/4af135955de4e871b22a to your computer and use it in GitHub Desktop.
Makefile for local (OS X) Lightning 8 install
all:
chmod -R 777 docroot
bash ./remove-active-docroot.sh
drush make --concurrency=5 ./build/build-lightning.make.yml docroot; \
drush make build/drupal-org.make.yml docroot/profiles/lightning/ --no-core -y; \
cp build/lightning.* docroot/profiles/lightning/; \
rm -rf docroot/profiles/lightning/modules/lightning_features/*; \
cp -R build/modules/lightning_features/ docroot/profiles/lightning/modules/lightning_features/; \
cd docroot; \
drush site-install lightning -y --account-pass=lightning --site-name='OS X Local Lightning Dev' --db-url=mysql://root:root@127.0.01/lightning; \
say "local build done"; \
drush dl devel; \
drush -y en devel kint devel_generate; \
drush -y config-set system.performance css.preprocess 0 --format=boolean; \
drush -y config-set system.performance js.preprocess 0 --format=boolean; \
cp -R ../build/tests .; \
cd tests; \
cp behat.local.example.yml behat.local.yml; \
sed -i -e 's/BASE_URL/"http:\/\/localhost\/~adam.balsam\/lightning\/docroot"/g' behat.local.yml; \
composer install; \
cd ../
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment