WordPress.org

Ready to get started?Download WordPress

Ideas

Easier Migration from Development/Staging to Production

  1. spec8472
    Member

    12345

    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: 7 years ago #
  2. Dickie
    Member

    12345

    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: 7 years ago #
  3. jpepper
    Member

  4. Dickie
    Member

    12345

    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: 7 years ago #
  5. Dickie
    Member

    12345

    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
    http://trac.wordpress.org/changeset/5093

    Posted: 7 years ago #
  6. Jeff Chandler
    Volunteer Moderator and Voice of WP

    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.

    http://wordpress.org/extend/plugins/wp-migrate-db/

    Posted: 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    109 Votes
  • Status

    This is plugin territory