Fast Migration From Local Dev To Live Production

By Eric Burt on December 22, 2019 in Deployment

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.

Prerequisites

To start off you will need the following:

  • Completed WordPress site in a local dev environment
  • WordPress installed on a live domain
  • Web Hosting (I use SiteGround)

All-in-One WP Migration

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.

Local 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.

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.

Final Steps

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.

Comments

I’ve done this before, for a class, never had a use for it since.

Leave a Reply

Your email address will not be published. Required fields are marked *