-
Book Overview & Buying
-
Table Of Contents
Professional WordPress - Third Edition
By :
This example is going to focus on taking an existing WordPress site, for example your local development site, and launch it on a production server, such as launching test.example.com to example.com. We are going to assume you have WP-CLI installed on both your development site and also your production servers.
First, we will focus on your local development environment and gather the necessary elements for moving to your production server. Export the database from your development site using WP-CLI.
wp db export
This will give you an SQL file of your content and configuration from WordPress. When doing this manually, as shown earlier, you would want to hand-edit this file or run it through some regex substitutions to make the necessary URL changes. However, using WP-CLI we will save this step for later.
The other development files you need are your custom theme. You can either zip or tarball your development files, or if you are deploying a theme from source code control...
Change the font size
Change margin width
Change background colour