Advice for copying staging site to live site
-
Thank you in advance for reading this, and for any help you can offer!
I am working on a fairly well established wordpress site, (300+ posts, lots of images) helping out the owner with a few things that she needs. She wants to make some changes to the site, get a new theme, remove/change pages and posts and generally make updates.
She asked me to create a staging/beta site for her to work on while she is making these changes, so that it doesn’t disrupt the live site. To that end, I made a direct copy of her current site and database into a ‘Beta’ subdomain/folder. The current live site is going to stay online and continue to be updated. I already explained that if she makes new posts on the live site, she will have to make them on the beta site too, if she intends on eventually making the beta site go live.
Here’s my question: When the time comes, what is the ‘cleanest’ way to transfer the entire staging site over to the live site, with as little down-time as possible.
On the server (A Bluehost Shared server) I have two folders: her live folder, and a ‘beta’ folder. I also have two databases. The live and a ‘Beta’ database.
This is the current method I am thinking of doing. Please feel free to suggest others or tell me if this won’t work. If you have any questions, i’ll try to clarify.
On the server, create another empty database for the final site, copy the beta database to it, run SQL queries to find and replace URL’s. Rename the current live folder to a new name, and rename ‘Beta’ to the current live folder. Setup wp_config to point to the new database. This should, in theory, make the current domain point to the new site files and database.
-Aaron
- The topic ‘Advice for copying staging site to live site’ is closed to new replies.