Book Image

Drush for Developers - Second Edition

By : Juan Pablo Novillo Requena, Juan P Novillo Requena
Book Image

Drush for Developers - Second Edition

By: Juan Pablo Novillo Requena, Juan P Novillo Requena

Overview of this book

Table of Contents (13 chapters)
Drush for Developers Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Keeping Database Configuration and Code Together
Index

Running post sql-sync tasks in local environments


We have come a long way to here. So far, we built together a workflow from production to development and provided the team with two simple commands:

  • syncdb: This is a command to download a copy of the development environment's database

  • syncfiles: This is a command to download files from the files directory into the development environment

This is the same as when we added extra tasks after syncing production to development; we would like to automatically adjust the database configuration of a local environment once sql-sync completes. Here are some of the things we will do:

  • Enable user interface modules that are disabled in production and development, such as Views UI and Field UI

  • Enable development modules such as Devel, Database Logging, and Stage File Proxy

  • Disable production modules such as Update, Purge, or Memcache

  • Adjust environment variables to fine tune installed modules and disable caches

The preceding list is what I consider the most...