Drush for Developers - Second Edition

Effectively manage Drupal projects using Drush

Drush for Developers - Second Edition

Essentials
Juampy Novillo Requena

2 customer reviews
Effectively manage Drupal projects using Drush
$14.99
$24.99
RRP $14.99
RRP $24.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Free Sample

Book Details

ISBN 139781784393786
Paperback180 pages

Book Description

Drush for Developers, Second Edition, takes common challenges in Drupal projects and solves them using Drush. This book starts with the different installation approaches for Drush and its command structure. It then moves on to perhaps the trickiest challenge in Drupal projects: keeping code and configuration together during a project's lifetime. Next, we will deep dive into the tasks needed to keep a website under control and learn how to run, automate, and monitor them effectively.

Error validating and debugging our Drush commands is a must and this book has a whole chapter on that topic. The magic of managing remote Drupal projects through Drush site aliases is explained in the following chapters through a practical example. Finally, the book wraps up by putting in practice all the concepts covered in previous chapters in order to implement a development workflow for a team.

Table of Contents

Chapter 1: Introduction, Installation, and Basic Usage
Installation requirements
The Drush command structure
Understanding Drush's context system
Setting the context manually
Summary
Chapter 2: Keeping Database Configuration and Code Together
Meeting the update path
Summary
Chapter 3: Running and Monitoring Tasks in Drupal Projects
Running periodic tasks with cron
Running a task outside cron
Running long tasks in batches
Evaluating code on the fly and running scripts
Logging messages in Drush
Redirecting Drush output into a file
Running a command in the background
Summary
Chapter 4: Error Handling and Debugging
Validating input
Rolling back when an error happens
Browsing hook implementations
Inspecting the bootstrapping process
Inspecting hook and function implementations
Summary
Chapter 5: Managing Local and Remote Environments
Managing local environments
Managing remote environments
Special site aliases
Adding site alias support to the update path
Copying database and files between environments
Summary
Chapter 6: Setting Up a Development Workflow
Moving configuration, commands, and site aliases out of Drupal
Configuring the development database for the team
Running post sql-sync tasks in local environments
Summary

What You Will Learn

  • Update the database of a Drupal project to reflect changes in the codebase
  • Optimize, execute, and monitor periodic and one-off tasks
  • Browse through Drush and Drupal's hook implementations and functions
  • Implement a roll-back mechanism on your commands to handle errors
  • Define a group of site aliases to manage all the environments of your Drupal project
  • Create shell aliases and adjust the default behavior of frequent commands
  • Set up a development workflow for a team

Authors

Table of Contents

Chapter 1: Introduction, Installation, and Basic Usage
Installation requirements
The Drush command structure
Understanding Drush's context system
Setting the context manually
Summary
Chapter 2: Keeping Database Configuration and Code Together
Meeting the update path
Summary
Chapter 3: Running and Monitoring Tasks in Drupal Projects
Running periodic tasks with cron
Running a task outside cron
Running long tasks in batches
Evaluating code on the fly and running scripts
Logging messages in Drush
Redirecting Drush output into a file
Running a command in the background
Summary
Chapter 4: Error Handling and Debugging
Validating input
Rolling back when an error happens
Browsing hook implementations
Inspecting the bootstrapping process
Inspecting hook and function implementations
Summary
Chapter 5: Managing Local and Remote Environments
Managing local environments
Managing remote environments
Special site aliases
Adding site alias support to the update path
Copying database and files between environments
Summary
Chapter 6: Setting Up a Development Workflow
Moving configuration, commands, and site aliases out of Drupal
Configuring the development database for the team
Running post sql-sync tasks in local environments
Summary

Book Details

ISBN 139781784393786
Paperback180 pages
Read More
From 2 reviews

Read More Reviews