Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49197

What's your favorite use of Drush vset?

$
0
0

The more I learn to do with Drush, the more efficient I become. One trick that's saved me a lot of time is setting certain Drupal variables with the vset command instead of clicking through the standard admin interface—for example, putting the site in maintenance mode by setting site_offline to 1. Here are four variables I find useful to set via Drush. What are everyone else's favorites?

Variable Setting Possible Values
clean_url Clean URLs 0 - Disabled
1 - Enabled
preprocess_css Optimize CSS files 0 - Disabled
1 - Enabled
preprocess_js Optimize JavaScript files 0 - Disabled
1 - Enabled
site_offline Site status 0 - Online
1 - Offline

Edit: Attached is a pretty little printable cheatsheet of my favorites, for anyone who would like it.

AttachmentSize
Useful Drupal 6 Variables.pdf177.61 KB

Viewing all articles
Browse latest Browse all 49197

Trending Articles