« Drush » : différence entre les versions

An alternative space dedicated to technology and culture at Charleroi.
Aller à la navigation Aller à la recherche
(Page créée avec « '''Drush''' is a command tool to maintain Drupal installations. == Install it == '''Note:''' It's installed on both Grip and wolfplex.hackerspaces.be servers. cd ~... »)
 
(Archive)
Ligne 1 : Ligne 1 :
'''This page is kept for historical reasons. We don't use Drupal anymore.'''
'''Drush''' is a command tool to maintain [[Drupal]] installations.
'''Drush''' is a command tool to maintain [[Drupal]] installations.



Version du 3 avril 2015 à 22:23

This page is kept for historical reasons. We don't use Drupal anymore.

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 /home/wwwroot/wolfplex.org/www/drupal/
drush pm-list
drush pm-disable faq
Tip
You can filter the list with grep:
drush pm-list | grep faq

Links