Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Develop and Deploy Outside the Repo

662 views

Published on

WordCamp Phoenix 2016

Published in: Technology
  • Login to see the comments

  • Be the first to like this

Develop and Deploy Outside the Repo

  1. 1. Develop & Deploy Outside the Repo Directory
  2. 2. What's the Goal? Develop in local development environment Push code to git server Update your code seamlessly in WordPress
  3. 3. Everyone Should Use Version Control GitHub Bitbucket GitLab Other git server
  4. 4. Semantic Versioning Everyone should tag your releases using semantic versioning https://semver.org
  5. 5. MAJOR.MINOR.PATCH MAJOR - incompatible API changes, something that definitely breaks backwards compatibility MINOR - add functionality, maintaining backwards compatibility PATCH - bug fixes, maintaining backwards compatibility
  6. 6. MAJOR.MINOR.PATCH.DEV DEV - increase version number during in the develop branch
  7. 7. Develop in your local environment Push commits Tag releases
  8. 8. Now What?
  9. 9. How to Deploy Your Code FTP/SFTP Add updater library to every project Use an updater plugin Continuous Integration
  10. 10. FTP/SFTP Upload changed files or complete project everywhere Doesn't scale well Dependent upon remembering where all your deployments are located
  11. 11. Updater Library WordPress-GitHub-Plugin-Updater https://github.com/radishconcepts/WordPress- GitHub-Plugin-Updater Requires additional code in every project Difficult to update the updater code
  12. 12. Updater Plugin Updater code outside of your projects Easy to maintain updater plugin Examples GitHub Updater WP Pusher
  13. 13. Demo
  14. 14. Continuous Integration Use of RESTful endpoint to automatically update your code on every push/commit Webhooks
  15. 15. Demo
  16. 16. Questions?
  17. 17. WhoAmI? Acute Care Surgeon in Palm Springs, CA Twitter: @andyfragen GitHub: https://github.com/afragen Occasional blogger: https://thefragens.com WordCamp Sponsor/Speaker Developer of GitHub Updater
  18. 18. What's Next! GitHub Languages: https://github.com/afragen/github-updater-translations Decoupled language pack updates for your plugins/ themes.

×