Beginning Drush

1,220
-1

Published on

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

No Downloads
Views
Total Views
1,220
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
19
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Beginning Drush

  1. 1. Getting started with Drush Downloading, installing and extending Drupal with Drush
  2. 2. By Kevin BasarabMediacurrent Sr. Drupal Developer @kbasarab
  3. 3. What is Drush used for?■ Making Sandwiches■ Downloading Drupal■ Installing Drupal■ Downloading/Installing Modules■ Clearing Cache■ Generating/Using .make files■ Aliases/Sync sites■ Backup■ Update
  4. 4. Making Sandwiches g sandwiches Source: http://drupal.org
  5. 5. Making Sandwiches Source: http://drupal.org
  6. 6. Download DrupalDownloading Drupaldrush dl drupalcp -r drupal-7.14/* ./rm -r drupal-7.14Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  7. 7. Download Drupal■ Downloading Drupaldrush dl drupalcp -r drupal-7.14/* ./rm -r drupal-7.14■ Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  8. 8. Install Drupal■ Downloading Drupaldrush dl drupal ● Optionscp -r drupal-7.14/* ./ ○ --site-mailrm -r○ drupal-7.14 --db-prefix ○ --db-su ○ --db-su-pw■ Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  9. 9. Download Modules■ Downloading Drupaldrush dl drupal ● Optionscp -r drupal-7.14/* ./ ○ --site-mailrm -r○ drupal-7.14 --db-prefix ○ --db-su ○ --db-su-pw■ Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  10. 10. Enable Modules■ Downloading Drupaldrush dl drupal ● Optionscp -r drupal-7.14/* ./ ○ --site-mailrm -r○ drupal-7.14 --db-prefix ○ --db-su ○ --db-su-pw■ Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  11. 11. Clear Caches Source: http://drupal.org
  12. 12. .make files ● Useful when installing same modules on multiple sites ● Downloads and installs code, does not setup database ● Can create from existing site using generate-makefile or build yourself Source: http://drupal.org
  13. 13. .make files
  14. 14. .make files ● Manifest of projects Source: http://drupal.org
  15. 15. Alias Files ● Manifest of projects Source: http://drupal.org
  16. 16. Alias Files Usage ● Sync production, staging or dev database down to local quickly. ● Push full database changes to production, staging or dev. Source: http://drupal.org
  17. 17. Alias Files Usage ● Full example: http://drupal.org/node/1401522 Source: http://drupal.org
  18. 18. Archive Backup
  19. 19. MySQL Dump ● Full example: http://drupal.org/node/1401522 Source: http://drupal.org
  20. 20. Update Code
  21. 21. Update DB ● Full example: http://drupal.org/node/1401522 Source: http://drupal.org
  22. 22. Bonus Round ● drush sqlc (MySQL CLI) ● drush vset/drush vget (Variable set/get) ● drush fu, drush fr, drush fra (Features)
  23. 23. Questions?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×