My drush usage
Submitted by clemens on Fri, 2008/02/22 - 10:32am
Using drush with a strict server design makes my drupal maintence much more relaxed. I have this tiny script as a runner for drush.
$ cat drush
#!/bin/bash
SITE=$1
# get rid of param 1
shift
# path to drupal
ROOT=~/sites/$SITE
# path to drush
RUNNER=$ROOT/sites/$SITE/modules/drush/drush.php
echo "/* ======================================"
echo " * site : $SITE"
echo " * runner : $RUNNER"
echo " * root : $ROOT"
echo " * uri : $SITE"
echo " */"
# next line should be $RUNNER --root="$ROOT" --uri="$SITE" $*
~/sites-config/$SITE/modules/drush/drush.php --root="$ROOT" --uri="$SITE" $*
Now i can use drush build2be.com pm install cck
. I like it! What is miss is a sudo
version.