Drush is cool...
# put a link to drush in your bin
ln /usr/local/bin/drush/drush bin/drush
mkdir ~/.drush
touch ~/.drush/aliases.drushrc.php
# pinch another users alias file to get you started:
cp /home/michaeldance/.drush/aliases.drushrc.php .drush/
# edit alias file:
vim ~/.drush/aliases.drushrc.php
# see your aliases
drush sa
# chose an alias
drush use @prod
# check your good to go:
drush st
#drop into an sql shell
drush @ubox sqlc
# check the watchdog
drush watchdog-show
# clear the menu cache
drush @prod cc
# list the packages (eg modules/themes)
drush @prod pml
# filtering them with grep
drush @prod pml | grep agc
# review the watchdog-list
drush @ubox watchdog-list
#fire up the cron
drush @ubox cron
# list your packages
drush @ubox pml
# disable a package
drush @ubox dis activitystream_feed
No comments:
Post a Comment