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

EE on Git

Trevor Davis
December 06, 2011

EE on Git

A brief presentation about how Viget handles their EE builds with Git. A lot of the presentation was actually walking through the steps of how we do things.

Trevor Davis

December 06, 2011
Tweet

More Decks by Trevor Davis

Other Decks in Technology

Transcript

  1. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. EE ON GIT by Trevor Davis at DC EE Meetup on December 6, 2011
  2. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. @trevor_davis HI! I’M I work as a Front-end Developer at Viget. TREVOR DAVIS
  3. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. WHAT WE WILL COVER
  4. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. I. What is Git? WHAT WE WILL COVER
  5. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. I. What is Git? II. Creating a default EE build WHAT WE WILL COVER
  6. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. I. What is Git? II. Creating a default EE build III. Developing locally WHAT WE WILL COVER
  7. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. I. What is Git? II. Creating a default EE build III. Developing locally IV. Deploying WHAT WE WILL COVER
  8. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. I. What is Git? II. Creating a default EE build III. Developing locally IV. Deploying V. Maintaining a live site WHAT WE WILL COVER
  9. Wikipedia Git is a distributed revision control system with an

    emphasis on speed. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server.
  10. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. BASIC CONCEPT
  11. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make changes BASIC CONCEPT
  12. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make changes ‎ Add and commit BASIC CONCEPT
  13. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make changes ‎ Add and commit ‎ Push BASIC CONCEPT
  14. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make changes ‎ Add and commit ‎ Push ‎ Have a beer & enjoy having full revision history BASIC CONCEPT
  15. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. CREATING A DEFAULT EE BUILD
  16. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Private repo on Github CREATING A DEFAULT EE BUILD
  17. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Private repo on Github ‎ Multiple branches (master, plugins, structure) CREATING A DEFAULT EE BUILD
  18. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Private repo on Github ‎ Multiple branches (master, plugins, structure) ‎ Templates as files CREATING A DEFAULT EE BUILD
  19. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Private repo on Github ‎ Multiple branches (master, plugins, structure) ‎ Templates as files ‎ Single config.php CREATING A DEFAULT EE BUILD
  20. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Private repo on Github ‎ Multiple branches (master, plugins, structure) ‎ Templates as files ‎ Single config.php ‎ database.php for each environment CREATING A DEFAULT EE BUILD
  21. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Private repo on Github ‎ Multiple branches (master, plugins, structure) ‎ Templates as files ‎ Single config.php ‎ database.php for each environment ‎ Any free time = update, dump, push CREATING A DEFAULT EE BUILD
  22. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. GETTING STARTED LOCALLY
  23. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Clone the repo GETTING STARTED LOCALLY
  24. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Clone the repo ‎ Remove .git files GETTING STARTED LOCALLY
  25. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Clone the repo ‎ Remove .git files ‎ Setup new remote GETTING STARTED LOCALLY
  26. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Clone the repo ‎ Remove .git files ‎ Setup new remote ‎ Create db GETTING STARTED LOCALLY
  27. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Clone the repo ‎ Remove .git files ‎ Setup new remote ‎ Create db ‎ rake setup GETTING STARTED LOCALLY
  28. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Clone the repo ‎ Remove .git files ‎ Setup new remote ‎ Create db ‎ rake setup ‎ Relative upload locations GETTING STARTED LOCALLY
  29. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. DEPLOYING
  30. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ SSH DEPLOYING
  31. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ SSH ‎ Push/pull DEPLOYING
  32. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ SSH ‎ Push/pull ‎ Rake/PHP tasks DEPLOYING
  33. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ SSH ‎ Push/pull ‎ Rake/PHP tasks ‎ Capistrano DEPLOYING
  34. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ SSH ‎ Push/pull ‎ Rake/PHP tasks ‎ Capistrano ‎ Beanstalk DEPLOYING
  35. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. MAINTAINING THE DB
  36. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make structural changes on the live site MAINTAINING THE DB
  37. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make structural changes on the live site ‎ As long as they aren't destructive MAINTAINING THE DB
  38. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make structural changes on the live site ‎ As long as they aren't destructive ‎ Export DB MAINTAINING THE DB
  39. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make structural changes on the live site ‎ As long as they aren't destructive ‎ Export DB ‎ Commit and push MAINTAINING THE DB
  40. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make structural changes on the live site ‎ As long as they aren't destructive ‎ Export DB ‎ Commit and push ‎ Pull changes locally MAINTAINING THE DB
  41. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. ‎ Make structural changes on the live site ‎ As long as they aren't destructive ‎ Export DB ‎ Commit and push ‎ Pull changes locally ‎ Import DB MAINTAINING THE DB
  42. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

    should not be shared without permission. web: viget.com | trevordavis.net email: [email protected] twitter: @trevor_davis Thanks! Let’s Connect