WordPress.org

Ready to get started?Download WordPress

Forums

Proper procedure for moving dev site to live site? (6 posts)

  1. jdlyery
    Member
    Posted 2 years ago #

    What is the proper procedure for moving dev site to live site?
    I intend to make a copy of the existing live site for development and testing, making theme modifications, add pages etc.

    I have read this post about running 2 copies off o the same database:
    http://codex.wordpress.org/Running_a_Development_Copy_of_WordPress

    If I were to do it this way, say "website/content/" and "website/devcontent/" that shared a database, would I then be able to simply change the names of the folders to update the site? Or would that not work since any new pages added on the dev site be entered into the database with a link other than "website/content/"?

    What exacly is the best way to accomplish this? Thanks in advance.

  2. There isn't one. It really depends on what you're coming from and going to, and it's much harder with Multisite, since it hard codes some folder names in weird places.

    I would make a site locally with WordPress and use my hosts file to use domainname.loc as my URL. Then when I'm ready to go, I'd extract the DB, search/replace domainname.loc for domainname.com and put it all up live.

  3. jdlyery
    Member
    Posted 2 years ago #

    Thanks for the reply.
    So what happens if I share the same DB, and, having added some pages, uploads, pictures on the dev site, flip the switch (so to speak) making the dev site the live site (same folder structure as the original live site??

  4. I think that it's possible it'll work, but you'd have to try it.

  5. jdlyery
    Member
    Posted 2 years ago #

    I'm trying a different approach. So I copied the "contents" folder on the server to a new folder "review/contents" and edited WP-CONFIG to point to the db on another server. I have whitelisted the IP on my other server. When I go to the new url "thissite.com/review/contents" I get:
    Not Found
    Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.

  6. shastaw
    Member
    Posted 2 years ago #

    Hi jdlyery,

    Was your WP install folder called "contents" and you moved the whole thing? If so, you need to either update your domain to point at that directory (probably not what you want) or update your wp-config.php to recognize it's in a different location.

    Or was it a subdirectory inside WP? If so I'm guessing permalinks wouldn't be working without an update...

Topic Closed

This topic has been closed to new replies.

About this Topic