Drush 5.0 (DrupalCamp LA 2012) - Chris Charlton

1,233 views

Published on

Drush 5.0 overview - new features, standard features review, and some code examples.

Slides from the 6th annual DrupalCamp LA 2012 event.

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

  • Be the first to like this

No Downloads
Views
Total views
1,233
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Drush 5.0 (DrupalCamp LA 2012) - Chris Charlton

  1. 1. Drush 5.0NEW FEATURES. NEW POWERS.
  2. 2. Chris CharltonAuthor • Community Leader • Drupal Contributor Co-Inventor of the iHoodie for iPad http://xtnd.us http://chrischarlton.us @charltonweb
  3. 3. AT THE END: Super Geeky Stuff
  4. 4. NOW: New Features
  5. 5. Drush for Windowsinstaller sponsored by Microsoft
  6. 6. Drush for Windows
  7. 7. Drush for Windowsinstaller sponsored by MicrosoftDrush Makenow in Drush core
  8. 8. Drush Make
  9. 9. Drush Make Exampledrush make my_fav_modules.make
  10. 10. DrushMake.me
  11. 11. Drush for Windowsinstaller sponsored by MicrosoftDrush Makenow in Drush core
  12. 12. Autocompleteninjas use the TAB key
  13. 13. Autocompleteninjas use the TAB keyEasier multisite controltype --uri less
  14. 14. Drush Site Set Exampledrush site-set example.com
  15. 15. Autocompleteninjas use the TAB keyEasier multisite controltype --uri less
  16. 16. Site archivingzip a site & restore elsewhere
  17. 17. Drush Site Archiving Example drush archive-dump example.com--destination=/backups/example.com.tardrush archive-restore ./example.com.tar
  18. 18. Site archivingzip a site & restore elsewhereShell command aliasescode-free customization
  19. 19. Drush Shell Aliases Examples$options[shell-aliases][pull] = !git pull;$options[shell-aliases][noncore] = pm-list --no-core;$options[shell-aliases][sync-dev] =  !drush sql-sync @prod @dev &&  drush rsync @prod:%files @dev:%files$options[shell-aliases][restart-apache] =  !sudo /etc/init.d/apache2 restart
  20. 20. Site archivingzip a site & restore elsewhereCustom command aliasescode-free customization
  21. 21. NOW: Drupal Fundamentals
  22. 22. Download Modules, Themes, anythingone command will change your life
  23. 23. Download Modules & Themesdrush dl admin_menu devel zen
  24. 24. Download Modules, Themes, anythingone command will change your lifeUpdate all Modules & Drupal coreokay, two commands will change your life
  25. 25. Update all site modules & Drupal core drush up drush up admin_menu
  26. 26. Download Modules, Themes, anythingone command will change your lifeUpdate all Modules & Drupal coreokay, two commands will change your life
  27. 27. Manage Modules & Themesenable, disable, uninstall effortlessly
  28. 28. Enable Modules drush en admin_menudrush en admin_menu devel metatag
  29. 29. Manage Modules & Themesenable, disable, uninstall effortlesslyControl user accountschange passwords in 0.1 seconds
  30. 30. Reset User Passworddrush user-password 1 --password=“abc123”
  31. 31. Manage Modules & Themesenable, disable, uninstall effortlesslyControl user accountschange passwords in 0.1 seconds
  32. 32. Clear cacheswork. flush. repeat.
  33. 33. Clear Cachedrush ccdrush cc all
  34. 34. Clear cacheswork. flush. repeat.Run croncron.php who?
  35. 35. Run Crondrush cron
  36. 36. Clear cacheswork. flush. repeat.Run croncron.php who?
  37. 37. Site aliasesgive sites nicknames
  38. 38. Site Aliases drush @dev statusdrush example.com status
  39. 39. Site aliasesgive sites nicknamesRead Watchdog logswho let the logs out
  40. 40. Run Cron drush watchdog-showId Date Severity Type Message2 20/Apr 16:21 info system session expired.1 20/Apr 16:20 info system node 13 published.
  41. 41. Site aliasesgive sites nicknamesRead Watchdog logswho let the logs out
  42. 42. Sync files & databasesninjas do it silently
  43. 43. Sync Files drush rsync @prod @devdrush rsync @prod @dev --include-confdrush rsync @prod:%files @dev:%files
  44. 44. Sync Databasesdrush sql-sync @prod @dev
  45. 45. Sync files & databasesninjas do it silentlyConnect to database serversit’s practically teleportation
  46. 46. Run Cron drush sql-clidrush sql-connect
  47. 47. Sync files & databasesninjas do it silentlyConnect to database serversit’s practically teleportation
  48. 48. NOW: Here Be Dragons (Geek Alert)
  49. 49. Manage queuesbe master of your domainFlush image styles“oh, there it is”
  50. 50. DrushRC commands folder/sites/all/drushBuilt-in PHP web serverself propellant Drush
  51. 51. Usage trackingyou flushed caches 777 times yesterdayQuick Drupalboot up new Drupal sites just to show off

×