WordPress Workflows
PBWEB.CO.UK
@PHILL_BROWN
What is a Workflow?
Theme Dev Dev
Live
Local
Remote
Plugin Dev
Staging
• Collaboration
• Tracked changes
• Code recovery
• Distribution
• Consistency
Stack
• OS agnostic
• Automated provisioning
• Consistent
• Instantiable
• VagrantPress
Codebase
Version Control
Provisioning VC
• wp-config.php
• upgrade
Optional:
• blogs.dir
• uploads
• htaccess/web.config
Provisioning VC
WordPress Skeleton – Mark Jaquith
• Github
• Bitbucket
• Beanstalk
• Direct remotes
Shared hosts
Staging Live
Bitbucket
Environments
Code host
Dev
Database
1. Shared Database
2. WordPress post import/export
3. WP Migrate DB Pro
Staging Live
Dev DB
Dev
Live DB
Shared Database
• Keeps everything consitent
• Depends on common URLs
• Users can overwrite one another
Shared Database
RemoteLocal Export
Import / Export
WP-CLI WP-CLI
• Simple post-based sites
• Transfers media
• Doesn’t migrate options and widgets
Widget Settings Importer/Exporter
Define...
WP Migrate DB Pro
RemoteLocal
HTTP
• Full HTTP(S) DB transfer
• Replaces site URLs and filepaths
• Requires same table prefix
• Media library add-on
WP Migra...
MISSING
MERGES
• Consistent local and remote
environments
• Version control
• Database migrations
• Start well
Summary
• Code Deployment (Capistrano)
• Provisioning (Puppet + Chef)
Final thoughts
Questions?
@PHILL_BROWN
ASK@PBWEB.CO.UK
WordPress Workflows
WordPress Workflows
WordPress Workflows
WordPress Workflows
WordPress Workflows
Upcoming SlideShare
Loading in …5
×

WordPress Workflows

494 views

Published on

Workflows and Deployment. Set up environment using MAMP, WAMP or Vagrant. Track code using Git or Subversion and migrate your database.

Published in: Technology
1 Comment
0 Likes
Statistics
Notes
  • Hi Phil and thanks for your slideshare !

    When you talk about Database Merge, have you found something now ? I can't find something good to let client posts on production site and let dev create things on dev and staging side...

    Thanks !
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total views
494
On SlideShare
0
From Embeds
0
Number of Embeds
27
Actions
Shares
0
Downloads
1
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

WordPress Workflows

  1. 1. WordPress Workflows PBWEB.CO.UK @PHILL_BROWN
  2. 2. What is a Workflow?
  3. 3. Theme Dev Dev Live Local Remote Plugin Dev Staging
  4. 4. • Collaboration • Tracked changes • Code recovery • Distribution • Consistency
  5. 5. Stack
  6. 6. • OS agnostic • Automated provisioning • Consistent • Instantiable • VagrantPress
  7. 7. Codebase
  8. 8. Version Control
  9. 9. Provisioning VC • wp-config.php • upgrade Optional: • blogs.dir • uploads • htaccess/web.config
  10. 10. Provisioning VC WordPress Skeleton – Mark Jaquith
  11. 11. • Github • Bitbucket • Beanstalk • Direct remotes Shared hosts
  12. 12. Staging Live Bitbucket Environments Code host Dev
  13. 13. Database
  14. 14. 1. Shared Database 2. WordPress post import/export 3. WP Migrate DB Pro
  15. 15. Staging Live Dev DB Dev Live DB Shared Database
  16. 16. • Keeps everything consitent • Depends on common URLs • Users can overwrite one another Shared Database
  17. 17. RemoteLocal Export Import / Export WP-CLI WP-CLI
  18. 18. • Simple post-based sites • Transfers media • Doesn’t migrate options and widgets Widget Settings Importer/Exporter Define settings as config constants Import / Export
  19. 19. WP Migrate DB Pro RemoteLocal HTTP
  20. 20. • Full HTTP(S) DB transfer • Replaces site URLs and filepaths • Requires same table prefix • Media library add-on WP Migrate DB Pro
  21. 21. MISSING MERGES
  22. 22. • Consistent local and remote environments • Version control • Database migrations • Start well Summary
  23. 23. • Code Deployment (Capistrano) • Provisioning (Puppet + Chef) Final thoughts
  24. 24. Questions? @PHILL_BROWN ASK@PBWEB.CO.UK

×