Syndicate content

Topic “drush”

By zzolo
2009, May 23 - 11:14am

Drupal, Drush, and Dreamhost : A Quick Revelation on PHP Command Line

I use Dreamhost for some of my personal sites and for some friends. Dreamhost's basic package is nothing too powerful, but I like them; they are cheap, responsive, responsible, green, and funny. I also love some Drush. But for the life of me, the newer versions of Drush were throwing weird errors, mostly involving syntax. But when I went into the code, I could not find any syntax errors. Some of the errors suggested I was using PHP4, but I was like "No, I am definitely using PHP5 with Dreamhost."

Apparently, I was wrong! Looking through the issue queue of Drush today, I came across this comment which explains how to manually use PHP5 for the Drush alias, and it occured to me that my host could be doing that. Searching the interwebs a little, this was the best documentation on Dreamhost's setup that I could find. Apparently, Dreamhost uses PHP4 for the command line by default.

So, I changed by alias definition in my .bash_profile file to:

  1. # Drush
  2. #-----------------------------------------------#
  3. alias drush='/usr/local/php5/bin/php /home/alanpalazzolo/.drush/drush/drush.php'

And voila! Drush is working!!! Thanks to ericrdb and the wonderful developers of Drush.

By zzolo
2009, March 16 - 5:05pm

Drush, a King Among Men

Drush is wonderful. I discovered it about six to nine months ago and can't even fathom the amount of time it has saved me. Thank you, Drush, more specifically the wonderful developers on the project.

Drush Basics

If you are not in the know, and it's okay if you are not, Drush is a command line application for Drupal. Drush by itself is more of a framework, and becomes much more powerful and useful in conjunction with Drush Extras. Once you have set things up, you can do something like:

  1. drush pm install cck views imagecache

This would install (cvs checkout to sites/all/modules) the CCK, Views, and ImageCache modules. You would still have to go to the web administration to enable the modules. But, how easy is that! I am starting to put put together Drush install profiles, instead of using Drupal's install profiles.

Haiku and a Portrait

The Uncertainty Principle
The last moments of 2009

Floating on the air
everywhere and somewhere,
nowhere, only here.

Recent Books

Freakonomics Cover (cherryhillbooks.com/images/books/freakonomics.jpg)
Development as Freedom cover by Cover Browser (http://www.coverbrowser.com/image/bestsellers-2007/2013-1.jpg)
Pro Drupal Development: Second Edition Cover from Cover Browser (http://www.coverbrowser.com/image/bestsellers-2007/3532-1.jpg)
Pro JS Techniques Cover from eBook Networking (http://www.ebooknetworking.com/books/159/059/big1590597273.jpg)
Snow Crash Cover taken from CyperPunkReview (http://www.cyberpunkreview.com/images_books/SnowCrash.jpg)
Designing Interfaces Cover Image from textbooksrus.com
Cover image of Dreaming in Code (taken from Amazon)

The Tweet of Zzolo

  • @webchick Drupal is Ned Flanders: holds the moral high ground, but still marrys a floozie in Vegas.
    1 day 3 hours ago
  • #drupal #openlayers http://drupal.org/node/733830 released last night! Great work @tmcw http://drupal.org/node/733830
    4 days 9 hours ago
  • Personal weekend code sprint for #drupal #openlayers (and maybe some others) begins…. (avocado snack break) …. now!
    4 days 9 hours ago
  • Just got my first "Browser Choice" from Windows. Stupid in so many ways. (I am not choosing Internet Explorer, though)
    5 days 5 hours ago
  • Now that the @ie6funeral is over, it's just a matter of time until #ie6zombie rises (to the tune of MJ's Thriller). Buying shotgun now.
    5 days 13 hours ago

Twitter Icon Flickr Icon LinkedIn Icon Facebook Icon Drupal Association, Individual Member icon