EE on Git

98e7524451cd8ec1bf8f644d2c2f01c9?s=47 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.

98e7524451cd8ec1bf8f644d2c2f01c9?s=128

Trevor Davis

December 06, 2011
Tweet

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. WHAT IS GIT?

  10. 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.
  11. © Viget Labs, LLC • This presentation is CONFIDENTIAL and

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

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

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

    should not be shared without permission. ‎ Make changes ‎ Add and commit ‎ Push BASIC CONCEPT
  15. © 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
  16. CREATING A DEFAULT EE BUILD

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

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

    should not be shared without permission. ‎ Private repo on Github 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) 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 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 CREATING A DEFAULT EE BUILD
  22. © 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
  23. © 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
  24. DEVELOPING LOCALLY

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

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

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

    should not be shared without permission. ‎ Clone the repo ‎ Remove .git files 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 GETTING STARTED LOCALLY
  29. © 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
  30. © 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
  31. © 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
  32. DEPLOYING

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

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

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

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

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

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

    should not be shared without permission. ‎ SSH ‎ Push/pull ‎ Rake/PHP tasks ‎ Capistrano ‎ Beanstalk DEPLOYING
  39. MAINTAINING A LIVE SITE

  40. flickr.com/photos/thelivelygirl/ CREDITS THE DB

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

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

    should not be shared without permission. ‎ Make structural changes on the live site MAINTAINING THE DB
  43. © 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
  44. © 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
  45. © 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
  46. © 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
  47. © 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
  48. arrestedstills.tumblr.com CREDITS LET'S TRY OUR HAND AT THIS

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

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