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 Staging Server Staging Hosting

Laurie Gray
Laurie Gray
23,119 Points

How to deploy databases for WordPress - final stage!

Okay, I've made my site, I've used Git Tower to create versions of my site along the way and this has consistently backed up my PHP files and any tweaks to css and html.

Im ready to launch and Im using something like MAMP to locally edit my WordPress site.

I understand how to deploy absolutely everything except the databases - unless I manually got to PHP my admin and 'export' and then 'import'.

Is there a way to make this easier?

Many thanks.

Tim Knight
Tim Knight
28,888 Points

Laurie,

Within the lesson "Migrating from local to staging" they mention a tool and include it in the show notes for WordMove which is a deployment tool that will deploy both your files and your database from one server to another. That might be something to consider to help you automate the process. See: https://github.com/welaika/wordmove

Laurie Gray
Laurie Gray
23,119 Points

So use WPCLI and Wordmove - Is that a decent workflow?

Tim Knight
Tim Knight
28,888 Points

If you're comfortable with terminal tools that's what I'd suggest.