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

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. 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
  4. Bootstrapping EE A guide to setting up a reusable and

    rapid ExpressionEngine environment Monday, 15 October 12
  5. • 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
  6. A DRY(ish) bootstrap solution for reusable EE installations • I

    C E • INSTALL • CONFIGURE • ENCAPSULATE Bootstrapping EE: Principles Monday, 15 October 12
  7. 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
  8. 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
  9. 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
  10. Bootstrapping EE: ICE Setting Security and Privacy De ne Snippets

    and Global Variables Monday, 15 October 12
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. Get in touch Twitter: @cwcrawley / @madebyhippo Email: [email protected] 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