Integrating Drush on Windows XP/7/8 with Git Bash

There are additional configuration steps needed to get Drush to work with git bash. This is due to the Drush Windows Installer package not having a couple necessary configuration options enabled by default to provide proper integration with git bash.

Fresh Drush Installation

When installing drush using the Drush 5.7/5.8/6.0 Windows Installer, this screen will appear:
custom setup options during a Drush install
There are three boxes that are marked "X" (not installed).

Click the box titled "Register Environmental Variables", then choose "Entire feature will be installed on local hard drive".

Drush installation step2

Then, click the box titled "cwRsync Optional Component box", then choose "Entire feature will be installed on local hard drive". Enabling this option will (with a few other tweaks) enable you to use the drush rsync command.

Proceed with the installation.

The "Register Environment Variables" option will update the PATH so that git bash knows where to find drush.

Fixing An Existing Drush Installation

Advanced debugging of Drupal core using the command line (strace & tcpdump)

Basics

Debugging of Drupal was never easy, until you know the right tools and how to use them.

There are plenty of alternative debugging methods using some popular PHP libraries XDebug, XHProf, NuSphere PhpED, etc. and also most of the IDE have already built-in step-by-step debugger.

Using Drush to install, upgrade and work with Drupal projects

Instructions for installing, enabling and upgrading projects with Drush appear on the pages below.

Specific instructions for installing Drush on different platforms

For more details about drush project, please see the Drush project page or the Drush repo page on Github.

The drush repo page on Github has the most latest installation instructions - visible as you scroll down that long page.

Drush Commands

Drush integration is available from version rc1 of Patterns v.7. Here is a list of currently available commands:

Building Spark from Drush Make yourself

What is Drush? To learn about Drush go here: http://drupal.org/project/drush

There are three .make files in Spark:

  1. drupal-org-core.make, required by the Drupal.org packaging system in order to apply patches to core (we do have a couple).
  2. drupal-org.make, required by the Drupal.org packaging system to specify all the other projects/libraries/patches that should be bundled into a tarball.
  3. build-spark.make, for people who want to build Spark out by themselves.

If you're one of them, simply do:

Pages

Subscribe with RSS Subscribe to RSS - drush