drush make
 Install like a Pro




2011.07.09 - Dallas Drupal Days
http://dallasdrupal.org/sessions/drush-make-install-pro
What’s the Problem?
What’s the Problem?
‣   Installing Drupal is easy and quick
‣   Installing all the modules? Not so much
‣   Time consuming, prone to mistakes
‣   It’s miserable
‣   It’s the most vocally hated aspect of Drupal,
    especially by newcomers who don’t “get” it yet
First things first: drush




http://drupal.org/project/drush
First things first: drush
 ‣   The DRUpal SHell is a command line tool
 ‣   Quickly do all the things that normally take many,
     many clicks within the Drupal UI and/or FTP
 ‣   Can be extended by modules or themes
 ‣   Can be scripted to do seemingly endless tasks




http://drupal.org/project/drush
What is drush make?




http://drupal.org/project/drush_make
What is drush make?
 ‣   “Drush make is an extension to drush that can
     create a ready-to-use drupal site, pulling sources
     from various locations. It does this by parsing a flat
     text file (similar to a drupal .info file) and
     downloading the sources it describes.”


 ‣ It’s       a macro for installing Drupal

http://drupal.org/project/drush_make
What can I include?




http://drupalcode.org/project/drush_make.git/blob_plain/
a945642c5c48b759ae4a935a1b1cc0943ed720dc:/README.txt
What can I include?
‣   Drupal core, distributions, or installation profiles
‣   Modules, themes, or Features
‣   Patches (with MD5 hashes)
‣   External libraries
‣   git/bzr/SVN/CVS repositories
‣   Other drush makefiles
http://drupalcode.org/project/drush_make.git/blob_plain/
a945642c5c48b759ae4a935a1b1cc0943ed720dc:/README.txt
How do I use makefiles?
How do I use makefiles?
‣   Install drush and drush_make
‣   Create a makefile
‣   $ drush make myfile.make
‣   Done! Get building!
A simple makefile
core = 7.x
api = 2

; Core
projects[] = drupal

Code goes here.
; Modules
projects[] = ctools
projects[] = views

; Themes
projects[] = mothership
A complex makefile
A complex makefile
‣   This makefile uses Pressflow, specific module
    versions with patches, external libraries, and
    Github repos – all into one makefile.
‣   It might error out, but it never screws up the way a
    human often will (i.e. without admitting it)
‣   http://drupalcode.org/project/brightcove_recorder.git/blob_plain/
    9286c8354ab74b779b3c6260bbda48f74311451e:/examples/brightcove_recorder_quickstart.make
drush make saves time
drush make saves time
‣   Use drush make with Ægir to deploy a common
    setup as often as you need
‣   Have your company’s “standard install” at your
    fingertips
‣   Enhance your favorite distro or installation profile
    with the modules you always have to add
Creating makefiles
Creating makefiles
‣   Similar to the .info file of a module or theme
‣   Can be as general or specific as you need
‣   http://drupalcode.org/project/drush_make.git/
    blob_plain/refs/heads/6.x-2.x:/EXAMPLE.make
if you don’t want to...



Credits
projects[plug] =

 http://drushmake.me




Source: https://github.com/rupl/drush_make_generator
projects[plug] =

 http://drushmake.me
 Drush Make Generator!!!

 Provides a GUI for creating makefiles.
 Even less work :)



Source: https://github.com/rupl/drush_make_generator
DrushMake.me examples
‣   http://drushmake.me/a/helloworld
Thank You!
 Chris Ruppel
 http://twitter.com/rupl
 http://drupal.org/user/411999
 http://github.com/rupl



2011.07.09 - Dallas Drupal Days
http://dallasdrupal.org/sessions/drush-make-install-pro

Drush make - Install Drupal like a Pro

  • 1.
    drush make Installlike a Pro 2011.07.09 - Dallas Drupal Days http://dallasdrupal.org/sessions/drush-make-install-pro
  • 2.
  • 3.
    What’s the Problem? ‣ Installing Drupal is easy and quick ‣ Installing all the modules? Not so much ‣ Time consuming, prone to mistakes ‣ It’s miserable ‣ It’s the most vocally hated aspect of Drupal, especially by newcomers who don’t “get” it yet
  • 4.
    First things first:drush http://drupal.org/project/drush
  • 5.
    First things first:drush ‣ The DRUpal SHell is a command line tool ‣ Quickly do all the things that normally take many, many clicks within the Drupal UI and/or FTP ‣ Can be extended by modules or themes ‣ Can be scripted to do seemingly endless tasks http://drupal.org/project/drush
  • 6.
    What is drushmake? http://drupal.org/project/drush_make
  • 7.
    What is drushmake? ‣ “Drush make is an extension to drush that can create a ready-to-use drupal site, pulling sources from various locations. It does this by parsing a flat text file (similar to a drupal .info file) and downloading the sources it describes.” ‣ It’s a macro for installing Drupal http://drupal.org/project/drush_make
  • 8.
    What can Iinclude? http://drupalcode.org/project/drush_make.git/blob_plain/ a945642c5c48b759ae4a935a1b1cc0943ed720dc:/README.txt
  • 9.
    What can Iinclude? ‣ Drupal core, distributions, or installation profiles ‣ Modules, themes, or Features ‣ Patches (with MD5 hashes) ‣ External libraries ‣ git/bzr/SVN/CVS repositories ‣ Other drush makefiles http://drupalcode.org/project/drush_make.git/blob_plain/ a945642c5c48b759ae4a935a1b1cc0943ed720dc:/README.txt
  • 10.
    How do Iuse makefiles?
  • 11.
    How do Iuse makefiles? ‣ Install drush and drush_make ‣ Create a makefile ‣ $ drush make myfile.make ‣ Done! Get building!
  • 12.
    A simple makefile core= 7.x api = 2 ; Core projects[] = drupal Code goes here. ; Modules projects[] = ctools projects[] = views ; Themes projects[] = mothership
  • 13.
  • 14.
    A complex makefile ‣ This makefile uses Pressflow, specific module versions with patches, external libraries, and Github repos – all into one makefile. ‣ It might error out, but it never screws up the way a human often will (i.e. without admitting it) ‣ http://drupalcode.org/project/brightcove_recorder.git/blob_plain/ 9286c8354ab74b779b3c6260bbda48f74311451e:/examples/brightcove_recorder_quickstart.make
  • 15.
  • 16.
    drush make savestime ‣ Use drush make with Ægir to deploy a common setup as often as you need ‣ Have your company’s “standard install” at your fingertips ‣ Enhance your favorite distro or installation profile with the modules you always have to add
  • 17.
  • 18.
    Creating makefiles ‣ Similar to the .info file of a module or theme ‣ Can be as general or specific as you need ‣ http://drupalcode.org/project/drush_make.git/ blob_plain/refs/heads/6.x-2.x:/EXAMPLE.make
  • 19.
    if you don’twant to... Credits
  • 20.
    projects[plug] = http://drushmake.me Source:https://github.com/rupl/drush_make_generator
  • 21.
    projects[plug] = http://drushmake.me Drush Make Generator!!! Provides a GUI for creating makefiles. Even less work :) Source: https://github.com/rupl/drush_make_generator
  • 22.
    DrushMake.me examples ‣ http://drushmake.me/a/helloworld
  • 23.
    Thank You! ChrisRuppel http://twitter.com/rupl http://drupal.org/user/411999 http://github.com/rupl 2011.07.09 - Dallas Drupal Days http://dallasdrupal.org/sessions/drush-make-install-pro

Editor's Notes