Skip to content

Instantly share code, notes, and snippets.

@shrop
Last active December 16, 2015 07:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrop/5401142 to your computer and use it in GitHub Desktop.
Save shrop/5401142 to your computer and use it in GitHub Desktop.
A bash script to run when you want to configure your local development environment for Drupal development
#!/bin/bash
echo "Configuring local development environment for local.site..."
# Change directory to the webroot.
cd /var/www
# Sanitize the database.
drush sql-sanitize -y
# Disable modules.
drush dis -y ldap_authentication
# Enable modules.
drush en devel -y
drush en devel_generate -y
drush en reroute_email -y
# Clear Drupal caches.
drush cc all
echo "Environment configuration complete."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment