• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Intro to Drush
 

Intro to Drush

on

  • 2,144 views

 

Statistics

Views

Total Views
2,144
Views on SlideShare
2,118
Embed Views
26

Actions

Likes
1
Downloads
16
Comments
0

2 Embeds 26

http://www.weebly.com 25
http://m.gaajinaglaasu.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Intro to Drush Intro to Drush Presentation Transcript

    • An Introduction To Drush
      Steven C Jackson
      Roger Soper
    • OS Solutions
      OS Solutions began in early 2009 as a one-stop computer shop
      Evolved to be Drupal Consultants and Software Engineers
      Several years of Drupal experience and nearly a decade of PHP experience
      All solutions are open-source
    • Vitae
      Steven C Jackson
      Bachelor’s Computer Science
      Finalizing Master’s Computer Science
      Red Hat Certified Technician
      Free Software Foundation Contributor
      Wrote BASH.ED (CC licensed, also free in PDF format)
      Linux Nerd
    • What is Drush?
      Command Line Utility
      DRUpalSHell
      As defined:
      drush is a command line shell and Unix scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.
    • Why Use Drush?
      Great for sysadmins
      Easy commands
      Written in PHP  Easily extendable
      One installation to rule them all
      Can even use on Windows OS
      Saves Time
    • How To Get?
      Download from Drupal.org
      http://drupal.org/project/drush
      Installation is super easy for sysadmins and the average code monkey
      http://ossolutions.org/article/install-drush-server-you-dont-have-admin-rights-0
    • Install Overview
      Download drush [ wget http://ftp.drupal.org/files/projects/drush-All-versions-3.0-beta1.tar.gz ]
      Extract it [ tar xzvfdrush-All-versions-3.0-beta1.tar.gz ]
      Make it executable [ chmodu+xdrush ]
      Alias or PATH it [ alias drush=‘/path/to/drush’ ]
      Source or Export [ source ~/.bashrc ]
    • How to Use
      Navigate to your site root (or further)
      cd /var/www/mysite
      Note: Drush reads sites/default/settings.php for db info
      Type ‘drush’ to get a list of commands
    • Common Commands
      dl
      Downloads a module or theme
      Extracts it
      Example
      drush dl node_page
      drush dl zen
    • Common Commands
      en
      Enables a module or theme
      Example
      drush en node_page
      drush en zen
    • Common Commands
      cc
      Clears Drupal Cache
      Example
      drush cc
      Gives you a choice to clear individual cache or all cache
    • Common Commands
      sql-dump
      Performs a mysqldump
      Example
      drushsql-dump
      Don’t forget to redirect your output lest you have it all print to screen
      Drushsql-dump > out.sql
    • Common Commands
      watchdog-list
      View the watchdog logs basaed on severity levels
      Example
      drush watchdog-list
    • Common Commands
      Remember there are a plethora of commands at your disposal
      Just type ‘drush’ at the command line for a list of available options
      Because drush is extendable some modules or profiles (like Aegir) offer additional functionality
    • Drush Make
      Extremely power Drush utility
      Allows you to wrap up and entire site in a make file and deploy the site basically as a profile
      Beyond scope of Intro to Drush but worth checking out
      http://drupal.org/project/drush_make
    • Try It Yourself
      ssh adug@173.203.103.240
      Password: adug!
      Site path: /var/www/adug/
      URL: http://173.203.103.240/
      Site un/pw: admin/adug!
      Temporary server but please don’t go crazy 
    • Topic Suggestions?
      Meetings 2nd Saturday of every month at 2pm
      Always at OS Solutions
      1244-B Jones St, Augusta, GA 30901
      steven@ossolutions.org
      roger@ossolutions.org
      888-275-4893
      Videos and Slides available online @ ossolutions.org and slideshare.net/ossolutions