Drupalcamp 2010 Drush Presntation

2,227 views
2,166 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,227
On SlideShare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
Downloads
37
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Drupalcamp 2010 Drush Presntation

  1. 1. Drush Command Line Drupal Andrew Riley February, 2010
  2. 2. What is Drush?
  3. 3. Drupal Shell Yes, it allows you to manipulate Drupal without ever having to go into Drupal. Shh, it works in windows too.
  4. 4. Who should use it?
  5. 5. Developers Module Developers Theme Developers Site Developers People who don’t call themselves developers*
  6. 6. Ongoing Deployment Developers
  7. 7. Content Managers Don’t need Drush They can use normal Drupal They will be envious
  8. 8. Why use it?
  9. 9. 1 Speed Normal: 5 Steps Drush: 2 Steps 200 Steps?
  10. 10. 2 Consistancy Things are better when humans aren’t involved.
  11. 11. Should you add modules in : /sites/all/modules (Possible) /sites/default/modules (Possible) /modules (HECK NO)
  12. 12. 3 It’s scriptable
  13. 13. #!/usr/bin/sh rm ~/update_backup.sql.gz drush sql dump | gzip > ~/ update_backup.sql.gz drush update drush cc
  14. 14. How to use it
  15. 15. Installing is easy - follow the directions
  16. 16. Increase your memory_limit in php.ini
  17. 17. HELP ME!!!! drush help
  18. 18. Downloading drush download {modulename} or drush dl {modulename} Example: drush download webform
  19. 19. Clear Cache drush cache clear or drush cc
  20. 20. Run Cron drush cron
  21. 21. Updating Drupal drush update Updates your code base and runs the database update.
  22. 22. Backup your DB drush sql dump or drush sql dump | gzip > ~/update_backup.sql.gz
  23. 23. Restore your DB drush sql load
  24. 24. Variable Set/Get drush variable get {name} drush variable set {name} {value}
  25. 25. Extending Drush Modules can expand it (xmlsitemap2, sitedir_migrate, backup_migrate) There are modules that only work with Drush (Drush Make, etc)
  26. 26. Questions? Andrew Riley @andrewmriley Associate Director of Software Development Mindcomet

×