Open main menu

Changes

902 bytes added ,  17:42, 17 March 2015
Created page with "My current (as of {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}) setup is Static/CGI/PHP-5.4 Take site offline <source lang='bash'> drush vset maintenance_mode 1 </source..."
My current (as of {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}) setup is Static/CGI/PHP-5.4


Take site offline
<source lang='bash'>
drush vset maintenance_mode 1
</source>

get a status and use <code>--debug</code> to get a bit more info about what drush is doing
<source lang='bash'>
drush --debug status
</source>

Check system requirements
<source lang='bash'>
drush rq
</source>

Clear all caches and then run database updates
<source lang='bash'>
drush cc all
drush --debug updb

</source>


List all the enabled modules (and themes). Add the <code>--pipe -p</code> option for compact output
<source lang='bash'>
drush pml --status=enabled
</source>

Disable a bunch of stuff all at once (and let Drupal figure out the dependencies that also need to be disabled.)
<source lang="bash">
drush dis admin_menu,backstretch,ctools,features,mollom,seo_checker,socialmedia,token,xmlsitemap
</source>
4,558

edits