Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Modern WordPress Workflow The Production Server Real-World Scenarios

Sean Clarke
Sean Clarke
10,256 Points

I'm curious, what about using Composer to manage themes, plugins, and even WP updates?

I got into using it along with git and more recently gulp ssh (for running the update commands on staging/live).

Some advantages & the workflow

  • Project repo is tiny and super fast to deploy as it contains only composer.json (a description of the repos and versions you want to include, and no actual files).
  • Manage custom and premium plugins using git/bitbucket, inc branches/versions
  • Keeps everything fairly modular and independent
  • Workflow: Edit your themes/plugins locally, push changes to appropriate repos/branches, then run composer updates on remote servers which 'detects' repo updates (according to versions set in composer.json)

Takes a little setting up and 'getting the concept clear in mind' but could be a useful augmentation and addition to what you've shared in the course here Jesse - which is great by the way, lots of useful gems to work right into my ever evolving workflow : )))

Many thanks!