Drush

An alternative space dedicated to technology and culture at Charleroi.
Aller à la navigation Aller à la recherche

This page is kept for historical reasons. We don't currently use Drupal for the www. site. Furthermore, this is intended for Drupal 7.


Drush is a command tool to maintain Drupal installations.

Install it

Note: It's installed on both Grip and wolfplex.hackerspaces.be servers.

cd ~/src
git clone --branch 7.x-4.x http://git.drupal.org/project/drush.git drush
chmod +x drush
ln -s drush/drush ~/bin/drush
rehash #if you use csh or tcsh

Troubleshooting

A module has broken the site

Procedure
  1. Go to the Drupal directory
  2. Print the modules list to get the name of your module (pm-list)
  3. Disable it (pm-disable <module name>)
cd /var/wwwroot/wolfplex.be/www/drupal/
drush pm-list
drush pm-disable faq
Tip
You can filter the list with grep:
drush pm-list | grep faq

Links