Last active
December 22, 2015 16:29
-
-
Save mrded/6499887 to your computer and use it in GitHub Desktop.
Drush script for resetting Drupal 8 sandbox.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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