Convert Staging to Production


#1

I have an existing WP production site that I’m moving to trellis. I set up a staging server and have been working on getting everything working on a live VPS. Once everything is working I’d like to simply import the latest db dump from production, switch over the DNS, and be good to go. On the Trellis side of things would I simply move the staging group_vars to the production directory, change the canonical name and provision/deploy to update the host names and grab a let’s encrypt cert or would there be more to it than that? Or might this process be a bad idea for other reasons?


#2

That sounds about right.

As long as you provision the server with the right settings, it doesn’t necessarily matter how you get there.

Just make sure everything is working on the new production server by setting your local hosts file to new IP before switching the DNS.