Agaric Design Collective

Drush: a love story

By Benjamin Melançon
on 14 Oct
5 comments

Key words and phrases

drush = Drupal shell install and update Drupal modules from the command line making deploying, administering, and maintaining Drupal easier

Tags

Description

Thanks to Moshe Weitzman at the latest Drupal Groups Boston meetup, Agaric was introduced, formally, to Drush. Although our paths had crossed in the crowds of modules before, this time it was love at first site.

Here's the first date.

Checked out Drush to the sites/all/modules directory. We expect this to be the last time we have to do this!

sudo svn co file:///srv/svn/agaric/drupal-contrib/5/modules/drush drush

Don't forget to go enable drush just like any other module at Administer » Site building » Modules. You need to!

Agaric set up the symlink as recommended in the README:

sudo ln /var/www/drupal-5_2-test/sites/all/modules/drush/drush.php /usr/bin/drush

OK, so we couldn't get the link to do anything for us. And since we run multisite we're also going to want to create a shortcut where we can hardcode in a default site like agaricdesign.com.

Note that there is key information in the most recent (as of October 9) version of the README that is not in the one packaged with the latest official release (5.x-1.0-beta4 2007-Aug-28), regarding this multisite issue.

(Agaric never said this would be an all-smooth-sailing rose-garden-with-sunshine love story.)

So, the command that works, from the directory sites/all/modules, is:

sudo php ./drush/drush.php -l http://agaricdesign.com/ help

Now to do the first cool thing: install a module.
sudo php ./drush/drush.php -l http://agaricdesign.com/ pm install edit_term

That's about as far as we go on the first date, but we're looking forward to seeing Drush again soon...

 

Not working anymore. drush

Not working anymore.

drush Fatal error: Allowed memory size

Can't find anyone with the same issue on the Drush issue queue. Increase our allowed memory over 16 mb? To even have Drush run help???

Grrrr.

/Agaric pouts.

Posted by Benjamin Melançon on Wed, 2007-10-24 15:02
Drush in summary

Basically you type the drush command and then the name of the module, from the project page url.

It figures out the latest version all by itself and it goes and gets it.

I have a script wrapping around that to commit it to our SVN repository, though Drush may be able to do that internally now.

Posted by Benjamin Melançon on Thu, 2008-08-28 17:56
You might find www.drupalmashup.interestsphere.com useful

Excerpt from the site's description:
"This site comes to the aid of experienced Drupal developers who have discovered that they rely on much the same collection of modules for a particular type of site. Once you've mashed up your collection you can view the generated drush commands and/or download the (UNIX shell) script."

Posted by Dan Poka (not verified) on Thu, 2009-02-19 08:43
Delete first post, there is a typo..

correct website address is www.drupalmashup.interestsphere.com

Posted by Dan Poka (not verified) on Thu, 2009-02-19 08:46
Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup> <kbd> <s>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.