« Drush » : différence entre les versions
Aller à la navigation
Aller à la recherche
(Archive) |
(Path update ; archive) |
||
Ligne 1 : | Ligne 1 : | ||
'''This page is kept for historical reasons. We don't use Drupal | '''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. | '''Drush''' is a command tool to maintain [[Drupal]] installations. | ||
Ligne 19 : | Ligne 20 : | ||
# Disable it (pm-disable <module name>) | # Disable it (pm-disable <module name>) | ||
cd / | cd /var/wwwroot/wolfplex.be/www/drupal/ | ||
drush pm-list | drush pm-list | ||
drush pm-disable faq | drush pm-disable faq |
Version actuelle datée du 3 avril 2015 à 22:24
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
- Go to the Drupal directory
- Print the modules list to get the name of your module (pm-list)
- 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