How to set up a global Drush configuration file

Description

Collection: Change Management and Version ControlChapter: How to Configure Drush and use Drush Make

Transcript

Now, the one downside of putting our drushrc dot php file inside of our Drupal directory is that now we can only use it within this single site. If we wanted to use it on a different site, say for example our production site, which is currently on our local machine, we would see that it doesn't work. So I'm going to go ahead and do a drush glo here and you see we get an error.

Now, this particular command is going to be useful across the board on all of our Drupal sites locally and so this is a good candidate for putting in a global configuration file instead of in a site-specific one. Now, the place where Drush is going to look for this global configuration file is in the dot drush folder inside of your user directory. Now, regardless of your operating system, you can get to your user's directory by going cd and then a tilde; ...

In this series we uncover how to use powerful tools to speed up and stabilize the Drupal development process. We begin with a thorough walk-through of Git, the version control system. After we cover how to patch modules and upgrade Drupal from one minor version to another, we demonstrate how to use the Features module to version control components of Drupal that aren't typically available to version control. Finally, we wrap up with how to integrate Drush - a powerful command line tool for Drupal - into your workflow to speed up the process of doing everything we discussed earlier in the series.

Some of the key points we'll be covering include:

How to use the command line

How to work with the Features module to capture important database changes and make deployment easier.

How to use Git for version control

Best practices for working on a Drupal team

Who this collection is for

This video collection is mainly for developers who want to improve their deployment strategies and learn how to work on a shared Drupal code base with other developers. However, even if you are not a developer, our coverage of using Features and version control is extremely valuable for deploying Drupal sites and sharing reusable components between projects.

Prerequisites

Even if you are not a developer, you will be able to follow with most of this collection. When we talk about code we do not go into detail about the basic components of the code, so you may want to brush up on some coding basics in the "PHP Programming Basics" collection.

It looks like there might be an issue playing videos in this browser. We're working on better cross-brower experience, but in the meantime please try the latest Chrome or Firefox browsers. Or, you may be able to watch the video directly without progress tracking or transcript: