In this guide, I will show you my go to way for a fast and simple migration from your local development environment to a live production server. Although there are other methods of deployment such as automatic git deployments to a web host that make implementing code changes to your production environment easier, I consider this to be the best method for a fast and simple deployment.
To start off you will need the following:
We will be using this plugin for our migration. All-in-one WP Migration exports everything in your WordPress site including the database, files, plugins, and themes into one file. This file can then be imported on your live site to create a bit by bit copy of your local dev environment.
To start off, we will head to our local dev environment. Go over to your plugins tab and select add new plugin. Search for ‘All-in-One WP Migration‘.
Download and install the plugin. When this is installed, you will see a new tab called ‘All-in-One WP Migration’ on your dashboard. Hover over this tab and select export and choose the file option from the menu to download a .wpress file. This file contains everything we need to rebuild our site bit for bit on our live environment.
Now, we will want to head over to our live environment admin panel. The following steps will be similar to what we did for the export on our local dev environment.
First, we will want to install and activate our All-in-One WP Migration plugin. Once this has been done, hover over your new tab in your dashboard and select ‘import’.
Now, we have the option to import our .wpress file onto our live website. Select ‘import from’ and choose ‘file’. We will now upload the .wpress file that we downloaded from our local environment admin panel. Once the upload has been completed, click ‘proceed’. Note that this will replace everything on your current live environment with a one for one clone of your local environment at the time of export.
The final thing we will have to do is save and update our permalinks. Hover over ‘settings’ and click on permalinks. Before doing this, you will have to sign into your new site with the same username and password you were using for your local environment. Once this has been completed, update your permalinks to complete this guide.