How do you do A/B switching in a web app? (for deploying updates)

Posted by stagas on Stack Overflow See other posts from Stack Overflow or by stagas
Published on 2010-04-17T13:11:09Z Indexed on 2010/04/17 13:13 UTC
Read the original article Hit count: 286

I currently have a mysite.com (A) which points to /public_html/ and a dev.mysite.com (B) which I created a /dev_html/ for that. I cloned the site but now I need a way of switching between them without having to copy all the files from one dir to another and without bringing the site down. I just want to switch the live site to B and then work on A, and when I finish, switch the live site to A and work on B. Is there a simple way? I'm using cPanel X and cPanel 11 (WHM VPS). Also, both can interact with the same database so that's not an issue as I'm not changing any database structure. Only the php/js/img files need to switch.

© Stack Overflow or respective owner

Related posts about website

Related posts about abtest