To DRUSH or Not to DRUSH

Events happening in the community are now at Drupal community events on www.drupal.org.
Summitt Dweller's picture

For almost a year now I've been developing Drupal sites using an old desktop PC (running Ubuntu 9.04) as my dev platform. Now I have reason to take my development on the road so I picked up a cheap laptop, configured it to dual boot Windows and Ubuntu 9.10, and managed to get my dev environment for one site setup on it last night.

I've got 6-7 other Drupal sites that I need to setup on it now and am once again pondering if I should load drush and try to get comfy with it. I know what some of you will tell me...'bout time, eh?

I now have a one-page text file consisting of about 25 steps that I go through each time I want to launch a new Drupal site. These steps create a localhost dev environment for me as well as the corresponding production site on some shared host space that I lease.

The big question is... Can I do scripting in drush such that I might easily automate all (or most) of these 25 (or so) steps and eliminate some mind numbing repetition?

Comments

Drush Make

scottatdrake's picture

I have yet to give it a try, but I think Drush Make may be able to get you close. http://drupal.org/project/drush_make

10 Among drush_make's capabilities are:
11 * Downloading Drupal core, as well as contrib modules from drupal.org.
12 * Checking code out from CVS, SVN, git, bzr, and hg repositories.
13 * Getting plain .tar.gz and .zip files (particularly useful for libraries
14 that can not be distributed directly with drupal core or modules).
15 * Fetching and applying patches.
16 * Fetching modules, themes, and installation profiles, but also external
17 libraries.

Baby Steps

Summitt Dweller's picture

OK, I got drush working and it has saved me a little work thus far. But, how do you add commands/extensions to drush and make them work? In particular, I've downloaded drush_shell and untar'd it...but where does it go and how is it invoked?

Mark