Your SlideShare is downloading. ×
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Beginning Drush
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Beginning Drush

1,113

Published on

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

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

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Getting started with Drush Downloading, installing and extending Drupal with Drush
  • 2. By Kevin BasarabMediacurrent Sr. Drupal Developer @kbasarab
  • 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. Making Sandwiches g sandwiches Source: http://drupal.org
  • 5. Making Sandwiches Source: http://drupal.org
  • 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. 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. 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. 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. 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. Clear Caches Source: http://drupal.org
  • 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. .make files
  • 14. .make files ● Manifest of projects Source: http://drupal.org
  • 15. Alias Files ● Manifest of projects Source: http://drupal.org
  • 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. Alias Files Usage ● Full example: http://drupal.org/node/1401522 Source: http://drupal.org
  • 18. Archive Backup
  • 19. MySQL Dump ● Full example: http://drupal.org/node/1401522 Source: http://drupal.org
  • 20. Update Code
  • 21. Update DB ● Full example: http://drupal.org/node/1401522 Source: http://drupal.org
  • 22. Bonus Round ● drush sqlc (MySQL CLI) ● drush vset/drush vget (Variable set/get) ● drush fu, drush fr, drush fra (Features)
  • 23. Questions?

×