Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Overcoming Command Line Allergies

459 views

Published on

Getting comfortable with the command line while learning Drush, Features, and Git. A presentation for the 2015 PNW Drupal Summit.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Overcoming Command Line Allergies

  1. 1. Overcoming Command Line Allergies Elaine Nelson v elainenelson.org
  2. 2. Caveats
  3. 3. What I want you to learn
  4. 4. Who am I?
  5. 5. WHY IS IT SO HARD?
  6. 6. Cooking vs. Baking
  7. 7. WHY SHOULD I BOTHER?
  8. 8. Drush = Speed
  9. 9. Features + Git = Better Drupaling
  10. 10. The land of the “real” programmers
  11. 11. FIND YOUR COMFORT ZONE
  12. 12. IT’S DANGEROUS TO GO ALONE! TAKE THIS…
  13. 13. Navigation dir or ls cd
  14. 14. Make it a little nicer •  clear (Mac only) •  Different styles •  Bigger type
  15. 15. Vim, nano, or whatever
  16. 16. The Googles •  That XKCD flowchart https://xkcd.com/627/
  17. 17. The first time you try stuff, it might be terrible.
  18. 18. SAMPLE PROJECT
  19. 19. THIS IS THE PART WHERE WE CARGO CULT
  20. 20. Set up a web server! MAMP + command line https://www.mamp.info/ http://bramvandenbulcke.be/en/article/ installing-drush-mamp Acquia Dev Desktop https://www.acquia.com/products- services/dev-desktop
  21. 21. SAVE YOUR HANDS WITH DRUSH
  22. 22. (Re)Installing Drupal drush site-install
  23. 23. Is this thing on? drush status
  24. 24. Module installation: the old way
  25. 25. Module installation drush en module_name
  26. 26. Always say YES drush en module_name --y
  27. 27. Advanced module tricks drush dl project_name drush en module_name-7.x-x.x
  28. 28. Updates drush up
  29. 29. drush cc all
  30. 30. How to go further •  Beginner’s guide https://www.digitalocean.com/community/tutorials/a- beginner-s-guide-to-drush-the-drupal-shell •  Full list of commands http://drushcommands.com/ •  Drupalize Me https://drupalize.me/videos/what-drush?p=1156
  31. 31. A FEATURE IS A WHAT NOW?
  32. 32. Naming things is hard •  Features is a module. •  A feature is something made with Features. •  A feature is also itself a module. The simplest way to create a setup of content types, views, and other stuff.
  33. 33. Install Features drush en features --y
  34. 34. Building your feature
  35. 35. Putting your Feature to work drush en feature_name --y
  36. 36. How to go farther •  Drush commands to use with Features: https://www.drupal.org/node/960926 •  Migrate works with Features •  Drupalize Me (no, they’re not paying me)
  37. 37. GIT IS YOUR SAFETY NET
  38. 38. like Dropbox, but for Features
  39. 39. Again on the live
  40. 40. Adding changes Needs  drush  fu  screenshot?  
  41. 41. Stage > Commit > Push
  42. 42. Rolling back
  43. 43. Fetch > Pull > Revert
  44. 44. Tools for Git GUIs for Git •  Cross-platform, free: Github & Sourcetree •  My preference: Tower (Mac only, $69) Remote origin options •  Github •  Bitbucket •  Gitlab
  45. 45. Add complexity as you need it •  Rolling back, branching, merging •  Git for Teams Emma Jane Hogbin Westby http://shop.oreilly.com/product/0636920034520.do
  46. 46. ALLERGY RELIEF

×