Easier Migration from Development/Staging to Production

  1. spec8472


    Currently it takes a lot of effort to move a WordPress install or configuration from one domain and database, to another.

    Ideally you would be able to set up and configure your WordPress install on one domain/url and database - then using some form of migration option, package up all configuration options (and, optionally - posts and pages too), which would allow deployment onto another domain/url and database.

    Example - New, Clean install - No WordPress at destination.

    * Install WP on http://staging.example.com w/ a staging db.

    * Install and Configure Plugins and Themes

    * (optionally) - Set up some static pages, with some content, etc.

    * Use Migration Option to package up all files, and database.

    * Deploy files to http://www.example.com, Use Migration Option to "restore" database and plugin configuration, etc to production database.

    Posted: 11 years ago #
  2. Dickie


    Yes definitely... I have been doing this quite a bit recently when testing out my theme with 2.1 and it's a pain to have to dive into PHPmyAdmin to change the options.
    I would really like to do this with upgrades too, so that I can get the upgraded version working ON THE SERVER before actually deploying it.
    There must be a way to do this...

    For example have the site specific bits ALL in the wp-config.php file... rather than have some bits in the database and some in the config, therefore all you have to do is have a wp-config.php file for your dev environment, and one for the working site.

    Posted: 11 years ago #
  3. jpepper

  4. Dickie


    I found out today that there is a define you can add to the wp_config.php file that has been in for ages, that auto updates the blog URL when you go to wp-admin.php

    just add

    define('RELOCATE', true);

    to your wp-config.php file
    Once done... you can upload any database that may contain the wrong blog URL... visit the wp-admin.php page, and login and it will automagically update your database!!!

    Note I haven't tested this, but I have it on good authority that it works.

    Posted: 11 years ago #
  5. Dickie


    You guys might like to know that Trunk now has the option to specify the SiteURL and HomeURL in the wp-config.php file

    See here

    Posted: 11 years ago #
  6. Jeff Chandler

    I think this idea is still being kicked around but has not been fully developed in the core just yet.

    Until then, someone has created a plugin to handle the database side of the equation.


    Posted: 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    109 Votes
  • Status

    This is plugin territory