Skip to content

Instantly share code, notes, and snippets.

@mrded
Last active December 22, 2015 16:29
Show Gist options
  • Save mrded/6499887 to your computer and use it in GitHub Desktop.
Save mrded/6499887 to your computer and use it in GitHub Desktop.
Drush script for resetting Drupal 8 sandbox.
#!/bin/bash
DRUPAL_DIR='/Users/mrded/Sites/drupal8'
mysql -uroot -e'DROP DATABASE drupal8; CREATE DATABASE drupal8;'
touch ${DRUPAL_DIR}/sites/default/files/foo
sudo chmod -R 777 ${DRUPAL_DIR}/sites/default/files
rm -rf ${DRUPAL_DIR}/sites/default/files/*
#drush -y -r ${DRUPAL_DIR} site-install standard --account-name=admin --account-pass=admin --sites-subdir=default
#drush -y -r ${DRUPAL_DIR} dis overlay
#drush -y -r ${DRUPAL_DIR} en simpletest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment