Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
DRUSH
    Suryanto Rachmat
Drupalcamp Indonesia 2012
ABOUT ME


•   5 years experience with Drupal

•   irc.freenode.net #drupal-id: suryanto

•   Twitter: suryanto_r

•   Fulltime Drupal Freelancer
WHAT IS DRUSH?
http://www.flickr.com/photos/zakh/337938459




TOOLKIT FOR DRUPAL
  ADMINISTRATOR
WHAT'S IT FOR?

•   Install Drupal                    •   Much, much more

•   Perform Updates

•   Download/enable/disable modules

•   Synchronize databases/files

•   Backups

•   Queries
INSTALLATION

•   Linux package management

•   Extract tarball from drupal.org

•   Homebrew

•   Windows Installer

•   PEAR
GETTING STARTED

•   To get a list of commands
    drush OR drush help

•   To get help on a command
    drush help <command>

•   Even more documentation
    drush topic
NEW TO DRUSH 5.X

•   Windows compatibility and installer   •   Better dumping/syncing

•   Drush make now included

•   Bash completion script

•   Built-in webserver

•   Better multisite handling

•   Remote sessions
INTEGRATIONS!

•   Backup and Migrate

•   Devel

•   Features

•   Omega and Zen themes

•   Many, many more
SITE ALIASES
Aliases are commonly used to define short names for
local or remote Drupal installations

Managing remote sites with drush aliases
Commands like

drush @staging pm-update
drush @staging cc all
SYNC DRUPAL SITES

//update the codebase using whatever source control system you prefer.
git pull
//import the database using drush
drush sql-sync @dci.prod @dci.dev
//sync the files directory using drush
drush rsync @dci.prod:%files/ @dci.dev:%files/
DRUSH MAKE

One Command + One File = Website

drush make myfile.make newsitefolder
QUESTION



  ?

More Related Content

Drush

  • 1. DRUSH Suryanto Rachmat Drupalcamp Indonesia 2012
  • 2. ABOUT ME • 5 years experience with Drupal • irc.freenode.net #drupal-id: suryanto • Twitter: suryanto_r • Fulltime Drupal Freelancer
  • 5. WHAT'S IT FOR? • Install Drupal • Much, much more • Perform Updates • Download/enable/disable modules • Synchronize databases/files • Backups • Queries
  • 6. INSTALLATION • Linux package management • Extract tarball from drupal.org • Homebrew • Windows Installer • PEAR
  • 7. GETTING STARTED • To get a list of commands drush OR drush help • To get help on a command drush help <command> • Even more documentation drush topic
  • 8. NEW TO DRUSH 5.X • Windows compatibility and installer • Better dumping/syncing • Drush make now included • Bash completion script • Built-in webserver • Better multisite handling • Remote sessions
  • 9. INTEGRATIONS! • Backup and Migrate • Devel • Features • Omega and Zen themes • Many, many more
  • 10. SITE ALIASES Aliases are commonly used to define short names for local or remote Drupal installations Managing remote sites with drush aliases Commands like drush @staging pm-update drush @staging cc all
  • 11. SYNC DRUPAL SITES //update the codebase using whatever source control system you prefer. git pull //import the database using drush drush sql-sync @dci.prod @dci.dev //sync the files directory using drush drush rsync @dci.prod:%files/ @dci.dev:%files/
  • 12. DRUSH MAKE One Command + One File = Website drush make myfile.make newsitefolder

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n