Using second site as staging area

WordPress’ “preview” mode is good, but not perfect.

How can I create a “staging site”, where I can make changes, and then,
when I’m satisfied, mirror the changes to my production site?

Read More

I realize this isn’t trivial (eg, copying tables from staging to
production would wipe out comments created in the interim), but seems
do-able.

I know about
http://mattheworiordan.com/projects/wp-plugins/dev-staging-environment/
but this assumes you’ve already setup a dev and staging environment.

Related posts

Leave a Reply

1 comment

  1. I just set up a dev.domain.com subdomain and mirror everything there, doing a find/replace on the sql export for www > dev, and of course changing wp-config.

    I used to have a staging server I mirrored things on, but I’ve since learned that a change in length of the domain name will invalidate any serialized data that contains it, so I now always keep the staging domain the same length as the live domain.

    You could also not sync the comments table so you don’t overwrite interim comments, as long as post IDs don’t change I don’t think this should be an issue.