rija / docker-nginx-fpm-caches-wordpress

Wordpress (no DB server included) running with Nginx in a Docker container with caching and encryption enabled
Other
23 stars 7 forks source link

How to migrate a Wordpress installation between environments #2

Closed rija closed 8 years ago

rija commented 8 years ago

For example to push the web site from Test to Production, or to build a Live-like version of the web site on your development machine.

Starting point: Working Wordpress install with real content deployed as shown in "Deploying Wordpress in a Docker container" and "Deploying Mysql in a Docker container".

On Test:

  1. export Database using a Wordpress Plugin like WP Migrate DB
  2. export data files from the data volume container used by Wordpress container as described above
  3. export themes options if it applies
  4. export widgets using a Wordpress plugin like Widgets Settings Importer/Exporter

On Production:

  1. Instantiate a database server container as described above
  2. Import the mysql dump as shown in "Import a sql database dump in Mysql running in a Docker container"
  3. Create a data volume container for Wordpress as shown in first part of "Deploy Wordpress in a Docker container"
  4. Import data files as shown in "Import into a data volume container"
  5. verify that all files have been copied over. Remove the 'wp-config.php' file.
  6. Instantiate a wordpress server container as described in second part of "Deploy Wordpress in a Docker container"

Notes: