nkgokul
4/17/2013 - 1:40 AM

A bash script to run when you want to configure your local development environment for Drupal development

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."