Share
Embed
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
Transcript
49 slides
-
© 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 -
© 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 -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. WHAT WE WILL COVER -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. I. What is Git? WHAT WE WILL COVER -
© 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 -
© 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 -
© 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 -
© 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 -
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. -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. BASIC CONCEPT -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. Make changes BASIC CONCEPT -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. Make changes Add and commit BASIC CONCEPT -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. Make changes Add and commit Push BASIC CONCEPT -
© 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 -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. CREATING A DEFAULT EE BUILD -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. Private repo on Github CREATING A DEFAULT EE BUILD -
© 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 -
© 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 -
© 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 -
© 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 -
© 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 -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. GETTING STARTED LOCALLY -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. Clone the repo GETTING STARTED LOCALLY -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. Clone the repo Remove .git files GETTING STARTED LOCALLY -
© 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 -
© 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 -
© 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 -
© 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 -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. DEPLOYING -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. SSH DEPLOYING -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. SSH Push/pull DEPLOYING -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. SSH Push/pull Rake/PHP tasks DEPLOYING -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. SSH Push/pull Rake/PHP tasks Capistrano DEPLOYING -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. SSH Push/pull Rake/PHP tasks Capistrano Beanstalk DEPLOYING -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. MAINTAINING THE DB -
© Viget Labs, LLC • This presentation is CONFIDENTIAL and
should not be shared without permission. Make structural changes on the live site MAINTAINING THE DB -
© 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 -
© 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 -
© 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 -
© 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 -
© 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 -
© 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