Upgrade to Pro — share decks privately, control downloads, hide ads and more …

EECI US 2012 : Horseshoe Bay Resort, Texas

EECI US 2012 : Horseshoe Bay Resort, Texas

Bootstrapping EE : A guide to setting up a reusable and rapid
ExpressionEngine environment

Afbfefa0ead60019e5ffa7f9d76bd940?s=128

Made By Hippo

October 15, 2012
Tweet

Other Decks in Technology

Transcript

  1. Bootstrapping EE A guide to setting up a reusable and

    rapid ExpressionEngine environment Monday, 15 October 12
  2. Based on the Isle of Wight, around 5 miles off

    the south coast of mainland UK. Lived there for 12 years Married with 3 Children 2nd Dan Black Belt MMA (TaihoJutsu) Bootstrapping EE: About Me Monday, 15 October 12
  3. Monday, 15 October 12

  4. Monday, 15 October 12

  5. Image Courtesy of Patrick Eden Photography Monday, 15 October 12

  6. Monday, 15 October 12

  7. Started Hippo beginning of 2010 Grew the business to a

    team of 4, then downsized in early 2012 back to 2. • Tech Outsource Agency • Exclusive EE/CI Agency (with the occasional nod to Statamic) • UK Development Partners for BrilliantRetail Bootstrapping EE: About Hippo Monday, 15 October 12
  8. Bootstrapping EE A guide to setting up a reusable and

    rapid ExpressionEngine environment Monday, 15 October 12
  9. • Born from frustration of clients wanting ‘days’ to set

    up. • When developing add-ons, a rapid setup was needed to test. • Maximising project pro t and RoI - the principle is to become more pro table, not charge your clients *less*. Bootstrapping EE: Background of Talk Monday, 15 October 12
  10. A DRY(ish) bootstrap solution for reusable EE installations • I

    C E • INSTALL • CONFIGURE • ENCAPSULATE Bootstrapping EE: Principles Monday, 15 October 12
  11. Boostrapping EE: Tools at the ready! • Mac Based Instructions

    • Command Line Terminal (Bash) • Local Development Environment (MAMP/MAMP PRO) • Code Editor (Sublime / Coda / TextMate) • Web Browser Monday, 15 October 12
  12. Abstract from any single project. Work based on your last

    5-6 projects and choose common factors. • Create an assets folder to store project speci c les : • con gs / addons / templates • backups • html / css / js / img • ugc (User Generated Content) Bootstrapping EE: ICE Monday, 15 October 12
  13. Install ExpressionEngine as you normally would: • Remove Unnecessary add-ons

    • Blacklist/Whitelist, Comment, Email, Emoticon, File, IP to Nation, Mailing List, Member, Metaweblog API, Moblog, Pages, Query, Referrer, RTE, SafeCracker, Simple Commerce, Statistics, Updated Sites, Wiki, ExpressionEngine Info • Setup UGC Folders • Images, Videos and Documents Bootstrapping EE: ICE Monday, 15 October 12
  14. Bootstrapping EE: con g.php Monday, 15 October 12

  15. Bootstrapping EE: database.php Monday, 15 October 12

  16. Bootstrapping EE: ICE Setting Security and Privacy De ne Snippets

    and Global Variables Monday, 15 October 12
  17. Bootstrapping EE: ICE Create standard le uploads Monday, 15 October

    12
  18. Bootstrapping EE: ICE Fix the damn bugs! http://expressionengine.com/bug_tracker/list_2.x Monday, 15

    October 12
  19. Bootstrapping EE: ICE Advanced Site Optimisation http://www.netmagazine.com/tutorials/optimise-your-expressionengine-site Monday, 15 October

    12
  20. Install/Con gure your development and CP add-ons only: • Nerdery

    CP Theme (Litzinger) • FieldEditor (BigMightyRobot) • Republic Analytics (Republic Factory) • Devot:ee Monitor (Devot:ee) • DevDemon Updater* (DevDemon) • Zoo Flexible Admin (EE Zoo) • LibrarEE (Made by Hippo) Bootstrapping EE: ICE Monday, 15 October 12
  21. Introducing the bootstrap.sh le: • Backs up your database •

    Handles renaming of your system folder • Sets all the correct folder permissions • Cleans your Installation up • Used to create your new sites Bootstrapping EE: ICE Monday, 15 October 12
  22. Set your File Permissions: • ./bootstrap.sh -p system • expressionengine/con

    g/con g.php • expressionengine/con g/database.php • images/* • assets/templates/ • assets/ugc/ Bootstrapping EE: ICE Monday, 15 October 12
  23. Clean up the le system: • ./bootstrap.sh -c • Installer

    les • Agile Records theme • Wiki themes • Corporate CP theme Bootstrapping EE: ICE Monday, 15 October 12
  24. Backup the system: • ./bootstrap.sh -b dbname user pass •

    Backs up the database to the /assets/ backups/{dbname}_{epoch}.sql Bootstrapping EE: ICE Monday, 15 October 12
  25. Once your site is fully con gured and setup, encapsulate

    it by committing to a DCVS. • Include the bootstrap.sh le • Maintain a single master branch Open the bootstrap.sh le and set the URL/path to your repository. • Doesn’t have to be remote Bootstrapping EE: ICE Monday, 15 October 12
  26. Monday, 15 October 12

  27. Monday, 15 October 12

  28. Boostrapping EE: Demo Time • Checked le out of repo

    • Created our new database • Imported the latest version of our db dump from repo • Created our local repo • renamed/secured cp folder • Added/committed all the les • Pushed to remote repo IN 26 Seconds Monday, 15 October 12
  29. Get in touch Twitter: @cwcrawley / @madebyhippo Email: hello@madebyhippo.com Web:

    madebyhippo.com Skype: cwcrawley Special Thanks to Gez from @twobelowzero for the slide designs https://bitbucket.org/cwcrawley/eeci-talk- les Monday, 15 October 12